-
Notifications
You must be signed in to change notification settings - Fork 11.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
Specify module
for Webpack 4
#11037
Specify module
for Webpack 4
#11037
Conversation
Looks like it was broken by #11033 (which switched |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ankane Hi. Thank you for the PR.
main
field contains bundle suitable for nodejs
i'm ok with these changes, but this problem is relevant only for webpack <= 4 and can be solved by using this plugin
This seems ok, but I am a bit wary of all these changes in the package.json file. It seems like the bundler ecosystem is so fragmented that finding a solution that works for everyone is impossible. |
I think one mistake was to change anything else than adding the exports. Old stuff does not read the exports at all, and we had things working quite well. |
Thanks everyone! |
@etimberg @kurkle @LeeLenaleee Hi. How about to make bugfix release with it? |
I think @LeeLenaleee suggested in slack, that it should be 4.2 because package.json changed. But I'd be fine releasing this kind of change as a bug fix. |
@kurkle @LeeLenaleee @dangreen @etimberg this PR should also solve another issue opened in annotation plugin (chartjs/chartjs-plugin-annotation#831). Maybe this PR could be marked as "chore" in order to have an evidence in the release note. I'm just thinking loud. |
Thank you @kurkle |
can anyone one solve this problem I spend almost 4hours to fix this and still no clue thanks. |
@Sokhongg you should transpile dependencies with babel https://dev.to/cubejs/why-and-how-to-transpile-dependencies-of-your-javascript-application-3phf |
Hi, thanks for this project!
Webpack 4 currently loads
./dist/chart.cjs
since it doesn't supportexports
: webpack/webpack#9509