Skip to content

Commit

Permalink
Add ‘process’ definition for blueprint in webpack 5.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed Jun 11, 2021
1 parent 67aa314 commit c2fda75
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/html-manager/test/webpack.conf.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var path = require('path');
var postcss = require('postcss');
const webpack = require('webpack');

module.exports = {
mode: 'development',
Expand Down Expand Up @@ -90,4 +91,12 @@ module.exports = {
},
],
},
plugins: [
new webpack.DefinePlugin({
// Needed for Blueprint. See https://github.com/palantir/blueprint/issues/4393
'process.env': '{}',
// Needed for various packages using cwd(), like the path polyfill
process: { cwd: () => '/' }
})
]
};

0 comments on commit c2fda75

Please sign in to comment.