-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
babel-preset-react-app, babel 7 for component library #5443
Comments
We are releasing a component library using the same method and struggled with this for a few hours as well. We are using the We solved the issue by configuring the
This requires having |
@simonedavico awesome, thank you very much for this explanation 🙏 |
Can |
Send a PR. 😄 |
Done #5847 |
I'm using
babel-preset-react-app
to transpile a npm package with just babel that I'm consuming in a CRA app.It worked well with
[email protected]
andbabel@6
, but when I updated to[email protected]
andbabel@7
the output build contained relative imports for babel stuff instead on inlining the functionsBefore upgrade:
After upgrade:
The build command that I'm using is
NODE_ENV=production babel src --out-dir build --copy-files
Am I doing something wrong with the new version of babel-preset-react-app ? Or it's a config issue from babel?
The text was updated successfully, but these errors were encountered: