You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bundler for my project has started complaining about the template strings that were introduced in version 3. Specifically, the UglifyJs plugin that is packaged with Webpack 3 is throwing this error:
Unexpected character '`'
Can the code be transpiled to ES5?
The text was updated successfully, but these errors were encountered:
This module mainly targets Node.js, not the browser. It's up to you to transpile it with Babel if you want to use it in the browser. You can find a more detailed explanation here: sindresorhus/ama#446
If you use Webpack, check out babel-engine-plugin, which transpiles only the dependencies that needs to be transpiled.
If you use Create React App, upgrade to Create React App v2. It supports automatic transpilation of dependencies, which will make this package just work.
The bundler for my project has started complaining about the template strings that were introduced in version 3. Specifically, the UglifyJs plugin that is packaged with Webpack 3 is throwing this error:
Can the code be transpiled to ES5?
The text was updated successfully, but these errors were encountered: