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
version 1.0.2 breaks webpack: 'return' outside of function #7
Comments
Top-level return has always been valid in node CJS modules. Webpack v4.31+ should have support for this pattern; what version are you using? |
v2.0.1 of both is-map and is-set have been released. |
@ljharb we're using create-react-app, version is |
@zaggino in CRA's case, the problem is caused by two things: 1) transpiling node_modules, which is highly unsafe, and 2) babel does not enable the |
Closes inspect-js/node-deep-equal#79. Closes inspect-js/node-deep-equal#78. Closes es-shims/Promise.allSettled#7. Closes airbnb/js-shims#12. Relates to: - inspect-js/is-map#5 - inspect-js/is-map#4 - inspect-js/is-map#3 - inspect-js/is-set#5 - inspect-js/is-set#4 - storybookjs/storybook#9154.
Closes inspect-js/node-deep-equal#79. Closes inspect-js/node-deep-equal#78. Closes es-shims/Promise.allSettled#7. Closes airbnb/js-shims#12. Relates to: - inspect-js/is-map#5 - inspect-js/is-map#4 - inspect-js/is-map#3 - inspect-js/is-set#5 - inspect-js/is-set#4 - storybookjs/storybook#9154.
Using
1.0.1
works but1.0.2
breaks webpack build with:The text was updated successfully, but these errors were encountered: