-
Notifications
You must be signed in to change notification settings - Fork 54
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
Is this plugin is compatible with Babel 7 and webpack4? #72
Comments
Yes, it's working. But you need to use |
This doesn't seem to work for my @bartdominiak Can I look at your usage example, I don't know if I am missing a configuration here. |
I met the same problem. babel.config.js
module.js
xxx.js
However, after publish xxx.js
|
@Holybasil that's because named imports are not destructuring. In your case, you need to |
@ljharb then what has |
it’s ensured that your default export is the module.exports value, instead of it being an object with a default property. If you want the named import, you have to use named export syntax - not export default. |
@ljharb well, I just forget to rebuild my module. Acturally,
while module.js
My fault and thank you!😄 |
I met the problem just like that https://stackoverflow.com/questions/52646625/cannot-export-default-with-webpack-4-and-babel-7. I used the babel-plugin-add-module-exports but can not resolve it.I also set the env modules ,but webpack still had some warnings that "export 'starrySky' was not found in '../utils/starrySky', I did export it with export default xxx
The text was updated successfully, but these errors were encountered: