- You can tell Babel which features of modern JavaScript you want and also whether Babel should transpile your code or leave it as-is.
- Sometimes the transpiled code doesn’t line up that well with the source code and the debugger behaves unintuitively.
- You can partially address this with source maps , which are files that reversibly explain how the source code changed into the transpiled code.
- When debugging your program and looking at your code, the debugger uses your source maps to show you your source code, or something resembling it, rather than the transpiled code.
- Since Babili is a Babel plugin, we can parse your code just once with Babel, which will transpile and minify it in one step.
Learn how the JavaScript you write for an app that uses React Native is converted into code that runs on your phone, and how we can make…
Continue reading “Modernizing JS Bundles for React Native with Babili (Late 2016) – The Exponent Log”