Transpilation
Transpilation translates a program or computational representation into an equivalent form compatible with a target language, version, or execution platform.
Web Components in Action
Transpilation is the source-to-source transformation of code from one readable programming language or language version into another.
- How it is used
- Makes newer component JavaScript usable in older browsers, particularly IE11.
- How deep it goes
- Defines source-to-source transformation and walks through Babel installation, configuration, and npm scripts; does not examine Babel’s transformation internals.
- Examples
- Uses npm scripts that transform bundled slider, coordinate-picker, and color-picker files into separate older-browser builds.
- What you can do after
- Apply it via Babel and npm scripts to produce older-browser JavaScript alongside Rollup-bundled component files.
Acing the Frontend Interview
Transpilation is the translation of source code from one programming language or language level into another compatible form.
- How it is used
- Frames interview answers about why JSX needs a build step and when TypeScript can run without manual transpilation.
- How deep it goes
- Explains JSX output, source maps, and version-specific TypeScript alternatives, but does not walk through a transpiler’s implementation.
- Examples
- Uses a JSX heading, Babel or esbuild output, and Node.js commands for stripping or transforming TypeScript syntax.
- What you can do after
- Evaluate/understand when JSX requires transpilation and when supported TypeScript syntax can run through Node.js type stripping or transformation.
Read how Acing the Frontend Interview explains transpilation →
Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond
The source-to-source transformation of code from one programming language or language version into another with similar semantics.
- How it is used
- Enables use of ESNext features while browsers catch up with JavaScript updates.
- How deep it goes
- Defines source-to-source compilation and walks through Babel 6 setup, configuration, and output without detailing transpiler internals.
- Examples
- Uses a let declaration, its strict-mode var output, and a src-to-dist Babel command.
- What you can do after
- Operate/configure Babel 6 to transpile ES2015 source into a dist directory.
Secrets of the JavaScript Ninja, Third Edition
The transformation of source code from one programming-language syntax or level of abstraction into another while preserving its behavior.
- How it is used
- Targets JavaScript syntax to browser support needs within web build pipelines.
- How deep it goes
- Explains Babel and TypeScript targeting choices, but stops short of tool setup and does not cover API polyfills.
- Examples
- Uses Browserslist targets, TypeScript’s esnext setting, and ResizeObserver to illustrate targeting and API limits.
- What you can do after
- Configure browser-targeted syntax transforms with Babel and Browserslist, while checking API compatibility separately.
Read how Secrets of the JavaScript Ninja, Third Edition explains transpilation →
F# in Action: A Revised Edition of Get Programming with F#
Transpilation is source-to-source translation from one programming language into another, typically preserving a comparable level of abstraction.
- How it is used
- Uses source-to-source translation to let alternative languages run on the JavaScript web runtime.
- How deep it goes
- Demonstrates installation, compilation, generated output, library rewriting, and REPL execution, while deferring detailed JavaScript build tooling.
- Examples
- Uses an arithmetic F# script, emitted JavaScript, the Fable REPL, and a larger order domain as concrete artifacts.
- What you can do after
- Apply it via Fable to compile F# scripts into JavaScript and test the result interactively or locally.
Read how F# in Action: A Revised Edition of Get Programming with F# explains transpilation →
React Quickly, Second Edition
A transpiler is a program that converts source code from one programming language or syntax level into another, typically within the same broad programming domain.
- How it is used
- Uses transpilation to let React developers write JSX while browsers receive standard JavaScript.
- How deep it goes
- Defines syntax conversion, explains generated React.createElement calls, and stops short of detailed transformer internals.
- Examples
- Shows `<h1>Hello</h1>` becoming a React.createElement-based JavaScript expression.
- What you can do after
- Understand why JSX must be transformed before browsers can execute React applications.
Read how React Quickly, Second Edition explains transpilation →
Also covered in
- Quantum Programming in Depth
- Vanilla WebIn early access (MEAP)
What to know first
- JavaScriptJavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- arrow functionAn arrow function is a JavaScript function expression written with arrow syntax that uses lexical binding for this and has no own arguments object.
- CommonJSCommonJS is a JavaScript module-system specification that defines how modules export and load values, traditionally using synchronous require calls and module.exports assignments.
Related concepts
- Babelused by · Babel is a JavaScript compiler and transformation tool that converts modern JavaScript syntax and related extensions into code compatible with specified environments.
- JavaScriptproduces · JavaScript is a high-level, dynamically typed programming language standardized as ECMAScript and used for web and general-purpose programming.
- JSXuses · JSX is a JavaScript syntax extension for expressing user-interface elements with XML-like or HTML-like markup that is transformed into JavaScript.
- bundlerused by · A bundler is a build tool that combines source modules and their dependencies or related assets into distributable output files.
- deployment pipelineused by · A deployment pipeline is a repeatable sequence of stages that builds, tests or validates, packages, and delivers software changes toward release or deployment.
Questions about transpilation
What is transpilation?
Transpilation translates a program or computational representation into an equivalent form compatible with a target language, version, or execution platform.
Which Manning books explain transpilation?
Web Components in Action, Acing the Frontend Interview, Get Programming with JavaScript Next: New features of ECMAScript 2015, 2016, and beyond, Secrets of the JavaScript Ninja, Third Edition, F# in Action: A Revised Edition of Get Programming with F# and React Quickly, Second Edition.
What should I know before learning transpilation?
Manning books that teach transpilation usually introduce JavaScript, CoffeeScript, arrow function and CommonJS first.
What kinds of transpilation are there?
Kinds of transpilation include JSX transpilation.
What is transpilation also called?
Transpilation is also called transpiling or transpile.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.





