We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62c7f48 commit 4ee8ba0Copy full SHA for 4ee8ba0
webpack.config.js
@@ -1,5 +1,6 @@
1
const path = require('path');
2
const webpack = require('webpack');
3
+const TerserPlugin = require('terser-webpack-plugin');
4
const { options: postgraphileOptions } = require('./src/postgraphileOptions.js');
5
6
module.exports = {
@@ -42,4 +43,15 @@ module.exports = {
42
43
node: {
44
__dirname: false, // just output `__dirname`
45
},
46
+ optimization: {
47
+ minimizer: [
48
+ new TerserPlugin({
49
+ terserOptions: {
50
+ // Without this, you may get errors such as
51
+ // `Error: GraphQL conflict for 'e' detected! Multiple versions of graphql exist in your node_modules?`
52
+ mangle: false,
53
+ },
54
+ }),
55
+ ],
56
57
};
0 commit comments