From 600fef21f63c29853e84c00a0d8bb363b8e88bfc Mon Sep 17 00:00:00 2001 From: Matt Danner Date: Mon, 22 Aug 2022 13:24:12 -0700 Subject: [PATCH] Update webpack.config.ts for nodestreams Without this alias, JSZip throws a "nodestream not supported on this platform" error. This addition resolves the issue. --- webpack.config.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webpack.config.ts b/webpack.config.ts index 0f03537add..5871440f3f 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -23,6 +23,9 @@ const configuration = { stream: require.resolve("stream-browserify"), }, plugins: [new TsconfigPathsPlugin()], + alias: { + jszip: require.resolve('jszip/lib/index.js'), + }, }, module: {