From 1810437f3d23285906521c9ccd798b60944a59fb Mon Sep 17 00:00:00 2001 From: Joffrey Bion Date: Tue, 7 Sep 2021 16:04:20 +0200 Subject: Workaround "process is not defined" due to blueprintjs bug See: https://github.com/palantir/blueprint/issues/3739 --- sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js (limited to 'sw-ui') diff --git a/sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js b/sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js new file mode 100644 index 00000000..db05f745 --- /dev/null +++ b/sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js @@ -0,0 +1,9 @@ +const webpack = require('webpack'); + +config.plugins.push( + // Workaround for `process.env` usages in blueprintjs's classes.ts + // https://github.com/palantir/blueprint/issues/3739 + new webpack.DefinePlugin({ + "process.env": "{}" + }) +) -- cgit