How to build zip.js with webpack 3 (Angular 5)? #298
Replies: 8 comments 2 replies
This comment has been hidden.
This comment has been hidden.
-
I am using version 3.11.0 of webpack (Angular 5) |
Beta Was this translation helpful? Give feedback.
-
Should I use another version of zip.js ? |
Beta Was this translation helpful? Give feedback.
-
You probably need to include a loader to add the support of |
Beta Was this translation helpful? Give feedback.
-
Seems like a good solution for some projects, but it didn't work on mine. btw, I found this info from the webpack-import-meta-loader plugin author
|
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
Note that you should be able a built file from the dist to circumvent this issue. |
Beta Was this translation helpful? Give feedback.
-
ERROR in ./node_modules/@zip.js/zip.js/lib/core/codecs/codec-pool-worker.js
Module parse failed: Unexpected token (110:57)
You may need an appropriate loader to handle this file type.
|
| function getWorker(options = {}) {
| return new Worker(new URL(workerData.scripts[0], import.meta.url), options);
| }
|
webpack: Failed to compile.
Beta Was this translation helpful? Give feedback.
All reactions