diff options
author | Joffrey Bion <joffrey.bion@gmail.com> | 2021-09-07 16:04:20 +0200 |
---|---|---|
committer | Joffrey Bion <joffrey.bion@gmail.com> | 2021-09-07 16:04:20 +0200 |
commit | 1810437f3d23285906521c9ccd798b60944a59fb (patch) | |
tree | 0f39359b665037dac0f4b2bb7769dc1b9170ff3e /sw-ui | |
parent | Upgrade BlueprintJS and wrappers (diff) | |
download | seven-wonders-1810437f3d23285906521c9ccd798b60944a59fb.tar.gz seven-wonders-1810437f3d23285906521c9ccd798b60944a59fb.tar.bz2 seven-wonders-1810437f3d23285906521c9ccd798b60944a59fb.zip |
Workaround "process is not defined" due to blueprintjs bug
See: https://github.com/palantir/blueprint/issues/3739
Diffstat (limited to 'sw-ui')
-rw-r--r-- | sw-ui/webpack.config.d/blueprintjs-process-bug-workaround.js | 9 |
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": "{}" + }) +) |