Skip to content

Commit

Permalink
Don't redefine process variable (#6991)
Browse files Browse the repository at this point in the history
Don't redefine `process` variable
  • Loading branch information
shilman committed Jun 6, 2019
2 parents 485fd61 + efc011d commit 1385e62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/core/src/server/manager/manager-webpack.config.js
Expand Up @@ -59,7 +59,7 @@ export default ({ configDir, configType, entries, dll, outputDir, cache, babelOp
new Dotenv({ silent: true }),
// graphql sources check process variable
new DefinePlugin({
process: { browser: true, env: stringified },
'process.env': stringified,
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
}),
// See https://github.com/graphql/graphql-language-service/issues/111#issuecomment-306723400
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/server/preview/iframe-webpack.config.js
Expand Up @@ -59,7 +59,7 @@ export default ({
template: require.resolve(`../templates/index.ejs`),
}),
new DefinePlugin({
process: { browser: true, env: stringified },
'process.env': stringified,
NODE_ENV: JSON.stringify(process.env.NODE_ENV),
}),
isProd ? null : new WatchMissingNodeModulesPlugin(nodeModulesPaths),
Expand Down

0 comments on commit 1385e62

Please sign in to comment.