Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow using the plugin with babel-loader on node_modules #3

Merged

Conversation

Obi-Dann
Copy link
Contributor

CreateReactApp typically has babel-loader to process all the dependencies from node_modules to ensure that don't have things like let or const and other unexpected es6+ features.

That config does not currently work the the plugin. The plugin tries to require.resolve resource string containing loader request path, eg babel-loader?core-js/somefile.js.

Let's use userRequest instead of request when available to solve this problem.

CreateReactApp typically has babel-loader to process all the dependencies from node_modules to ensure that don't have things like `let` or `const` and other unexpected es6+ features.

That config does not currently work the the plugin. The plugin tries to `require.resolve` resource string containing loader request path, eg `babel-loader?core-js/somefile.js`.

Let's use userRequest instead of request when available to solve this problem.
@ndelangen ndelangen merged commit a79b4a3 into ndelangen:master Jul 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants