-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fails to build on create-react-app: Publish ES5 to NPM #4
Comments
See my PR #5 |
@schnittstabil could you please take a look at #5. I am really need it. |
@kisenka you can use my fork instead https://www.npmjs.com/package/merge-options-es5
|
Sorry, I target node.js, if users want to use my modules in legacy browsers, it's up to them to transpile them. More importantly, those users know better which features they have to transpile than I do. Btw, Anyway, @glcheetham thanks for publishing your fork at npm. See also facebook/create-react-app#1125 for more workarounds. |
FYI, we're starting the work to compile deps with Let us know if you have feedback about how this should work. |
@kisenka , @glcheetham , it's a bit hacky, but we just run an inline package.json "postinstall":
"babel node_modules/merge-options/index.js -o node_modules/merge-options/index.js" .babelrc {
"presets": ["env"]
} |
When building a project using merge-options on create-react-app,
react-scripts build
will give the following error:This link to the create-react-app documentation explains the problem in more detail:
The text was updated successfully, but these errors were encountered: