-
Notifications
You must be signed in to change notification settings - Fork 37
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
Dependency issue with babel-runtime #57
Comments
Hi @SukantPal, Can you paste your Thanks, |
I think I am seeing the same issue. All I'm doing is requiring this module at the top of my
If I install babel-runtime as a dev dependency, |
@aulisius I went ahead and created a repo that demonstrates the issue: https://github.com/NReilingh/bug-repro-dynamic-cdn-webpack-plugin
|
However, shouldn't |
This plugin requires the inclusion of babel-runtime as a production dependency, which was removed in a previous commit. Fixes mastilver#57.
I think I figured this out. This package has a dev dependency on According to the docs for @babel/plugin-transform-runtime, using this plugin requires adding @babel/runtime as a production dependency, which was removed from this project in 124e6f9. I tried re-building this project in a fork without using the plugin and dev dependency, and everything still appears to build and test just fine. I'll submit a pull request with the change. The purpose of babel-runtime is to reduce compiled artifact size by including shared babel shims in a module instead of duplicating those shims in the compiled output, and while it does reduce the size of index.js from 9,035 bytes to 8,845 bytes, it does so at the expense of 48 KB for babel-runtime itself. |
Is this a bug report?
Yes.
Environment
Steps to Reproduce
My
webpack.config.js
file looks exactly like this:(Write your steps here:)
webpack --optimize-minimize
Expected Behavior
It should build fine.
Actual Behavior
Logs error:
Reproducible Demo
(Paste the link to an example project and exact instructions to reproduce the issue.)
The text was updated successfully, but these errors were encountered: