-
Notifications
You must be signed in to change notification settings - Fork 268
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
4.0.0 fails to be parsed by webpack without transpiling #206
Comments
Duplicate of #204. |
I also had this problem. In a Vue project. I resolved it by adding
to my But I still feel like I should not need to transpile this dependency. I have ~100 direct dependencies (all of them kept to the latest version with https://renovatebot.com/), thousands of transitive dependencies. I don't have to transpile any of the other dependencies. So think that the industry standard is that npm packages already contain the code transpiled (if needed). I cannot imagine how slow my build (and dev server) would be if I had to transpile all my dependencies. Also, it's a lot of wasteful computation if the transpilation of All of the above are just my assumptions and intuition, expressed without much understanding of these things (transpilation, modules, etc.). So if I'm missing something, I'm happy to be proven wrong. 🙂 @Qix- I saw the explanation in https://github.com/Qix-/color/releases/tag/4.0.0. Do you have some more details regarding the reasoning to do this change? Maybe a link to some article? |
@slaweet because it's modern and standard Javascript. If your build tools do not support it, don't upgrade major versions. Please keep discussion on the other issue, please. This is marked as a duplicate. |
Since upgrading to 4.0.0, webpack fails to parse
index.js
. It fails on line 66:My current workaround is to either downgrade to before 4.0.0 or to explicitly transpile
color
into my target.Currently using yarn 2.4.0 (berry) and node 16.5.0.
The text was updated successfully, but these errors were encountered: