File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 154154 "object-hash" : " ^2.0.1" ,
155155 "pa11y-ci" : " ^2.4.0" ,
156156 "prettier" : " ^2.1.2" ,
157+ "process" : " ^0.11.10" ,
157158 "puppeteer" : " ^5.5.0" ,
158159 "replace" : " ^1.2.0" ,
159160 "robots-parser" : " ^2.1.1" ,
Original file line number Diff line number Diff line change 11const path = require ( 'path' )
22const MiniCssExtractPlugin = require ( 'mini-css-extract-plugin' )
33const CopyWebpackPlugin = require ( 'copy-webpack-plugin' )
4- const { EnvironmentPlugin } = require ( 'webpack' )
4+ const { EnvironmentPlugin, ProvidePlugin } = require ( 'webpack' )
55const { reactBabelOptions } = require ( './lib/react/babel' )
66
77module . exports = {
@@ -88,7 +88,11 @@ module.exports = {
8888 ]
8989 } ) ,
9090 new EnvironmentPlugin ( {
91- NODE_ENV : 'development' // use 'development' unless process.env.NODE_ENV is defined
91+ NODE_ENV : 'development' , // use 'development' unless process.env.NODE_ENV is defined
92+ DEBUG : false ,
93+ } ) ,
94+ new ProvidePlugin ( {
95+ process : 'process/browser' ,
9296 } )
9397 ]
9498}
You can’t perform that action at this time.
0 commit comments