Skip to content

Commit b191773

Browse files
committed
Ignore pg-native to fix webpack bug
See brianc/node-postgres#838 (comment)
1 parent dfcbee6 commit b191773

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

config/webpackServer.config.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const paths = require("./paths");
2+
const webpack = require("webpack");
23

34
process.env.BABEL_ENV = "production";
45

@@ -22,6 +23,7 @@ module.exports = function (webpackEnv) {
2223
node: {
2324
__dirname: false,
2425
},
26+
plugins: [new webpack.IgnorePlugin(/^pg-native$/)],
2527
target: "node",
2628
module: {
2729
rules: [

0 commit comments

Comments
 (0)