Skip to content

Commit 0e8cdfa

Browse files
committed
fix: mark graphql-js as side-effect free for bundling
This is a nicer way of achieving roughly the same result as 924edf4 (reverted in 5b0c07b) but without reaching into internal paths within graphql-js. PR to do this in graphql-js itself: graphql/graphql-js#1312
1 parent 5b0c07b commit 0e8cdfa

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

webpack.config.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
const webpack = require('webpack');
2+
const path = require('path');
23

34
module.exports = {
45
mode: 'development',
56
entry: ['./src/schema-proxy'],
67
module: {
78
rules: [
9+
{
10+
include: path.resolve('node_modules/graphql'),
11+
sideEffects: false,
12+
},
813
{
914
test: /\.js$/,
1015
// Exclude node_modules as usual, with one exception:

0 commit comments

Comments
 (0)