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
Note: If you have problems running codemods and get Babel related errors, run jscodeshift with --no-babel.
The last change to src/Worker.js causes issues with babel-register. Passing module identifiers causes babel-register to look up those modules in the wrong places. Those modules should be required instead.
Furthermore, we probably don't want to transpile most of ES2015 features since people probably use a Node version that supports those. present-env already supports this:
If you want to compile against the current node version, you can specify "node": true or "node": "current", which would be the same as "node": process.versions.node.
Note: If you have problems running codemods and get Babel related errors, run jscodeshift with
--no-babel
.The last change to
src/Worker.js
causes issues withbabel-register
. Passing module identifiers causesbabel-register
to look up those modules in the wrong places. Those modules should berequire
d instead.Furthermore, we probably don't want to transpile most of ES2015 features since people probably use a Node version that supports those.
present-env
already supports this:https://babeljs.io/docs/en/babel-preset-env#targetsnode
but we should also include/exclude plugins based on the current node version.
The text was updated successfully, but these errors were encountered: