-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
issue with JSZip, webpack and acorn #327
Comments
Same here.
Solved with json-loader in //...
{ test: /\.json$/, loader: "json-loader" }
//... |
broke for us as well with 3.1.0, 3.0.0 works fine |
This comes from #317 where I reused the version in |
@dduponchel Where is used precisely the exposed |
It's not used internally, it is here to expose the version to other developers. |
I also used json-loader within my webpack startup config (see snippet below) but I still get that error. |
Webpack don't support by default requiring json files like we did for JSZip.version. It break builds so this commit fixes it by using an hard-coded string instead (we'll try to find a better way later). Fixes Stuk#327.
Webpack doesn't support requiring json files (like we did for `JSZip.version`) without extra configuration. It breaks builds so this commit fixes it by using an hard-coded string instead (we'll try to find a better way later). Fixes Stuk#327.
Yup, 3.0.0 works fine for me too. |
Fixed in 3.1.1. |
There is an error when using acornJS with JSZip.
Commenting out this line from jszip/lib/index.js prevents the gulp error.
JSZip.version = require('../package.json').version;
The text was updated successfully, but these errors were encountered: