Skip to content

Commit 968353e

Browse files
committed
Totally block webpack from messing with node
1 parent 419b48b commit 968353e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

webpack.config.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@ module.exports = {
2020
mode: 'production',
2121
devtool: 'source-map',
2222
target: 'node',
23-
node: {
24-
__dirname: false
25-
},
23+
node: false, // Don't mess with any node built-ins or globals
2624
module: {
2725
rules: [
2826
{

0 commit comments

Comments
 (0)