Update webpack.config.ts for nodestreams
Without this alias, JSZip throws a "nodestream not supported on this platform" error. This addition resolves the issue.
This commit is contained in:
@ -23,6 +23,9 @@ const configuration = {
|
|||||||
stream: require.resolve("stream-browserify"),
|
stream: require.resolve("stream-browserify"),
|
||||||
},
|
},
|
||||||
plugins: [new TsconfigPathsPlugin()],
|
plugins: [new TsconfigPathsPlugin()],
|
||||||
|
alias: {
|
||||||
|
jszip: require.resolve('jszip/lib/index.js'),
|
||||||
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
module: {
|
module: {
|
||||||
|
Reference in New Issue
Block a user