summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js9
1 files changed, 9 insertions, 0 deletions
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": "{}"
+ })
+)
bgstack15