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:
Matt Danner
2022-08-22 13:24:12 -07:00
committed by GitHub
parent d4d7f92df8
commit 600fef21f6

View File

@ -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: {