File tree Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Expand file tree Collapse file tree 3 files changed +7
-9
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ module.exports = function(webpackEnv) {
383
383
] ,
384
384
} ,
385
385
module : {
386
- noParse : [ / i c o n v - l o a d e r \. j s $ / , / c o l o r s \. j s $ / ] , // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
386
+ noParse : / i c o n v - l o a d e r \. j s $ / , // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
387
387
strictExportPresence : true ,
388
388
rules : [
389
389
// Disable require.ensure as it's not a standard language feature.
Original file line number Diff line number Diff line change @@ -116,11 +116,11 @@ module.exports = function(webpackEnv) {
116
116
// : {},
117
117
// },
118
118
{
119
- // Since v2 .0.0 css-loader/locals was removed in favour of exportOnlyLocals option
119
+ // In v3 .0.0 css-loader/locals was removed in favour of onlyLocals option
120
120
// So adding the option here in replacement as per
121
- // https://github.com/webpack-contrib/css-loader#exportonlylocals
121
+ // https://github.com/webpack-contrib/css-loader/tree/v3.4.2#onlylocals
122
122
loader : require . resolve ( 'css-loader' ) ,
123
- options : { ...cssOptions , exportOnlyLocals : true } ,
123
+ options : { ...cssOptions , onlyLocals : true } ,
124
124
} ,
125
125
{
126
126
// Options for PostCSS as we reference these options twice
@@ -362,7 +362,7 @@ module.exports = function(webpackEnv) {
362
362
] ,
363
363
} ,
364
364
module : {
365
- noParse : [ / i c o n v - l o a d e r \. j s $ / , / c o l o r s \. j s $ / ] , // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
365
+ noParse : / i c o n v - l o a d e r \. j s $ / , // https://github.com/webpack/webpack/issues/3078#issuecomment-400697407
366
366
strictExportPresence : true ,
367
367
rules : [
368
368
// Disable require.ensure as it's not a standard language feature.
Original file line number Diff line number Diff line change @@ -32,18 +32,16 @@ verifyTypeScriptSetup();
32
32
// @remove -on-eject-end
33
33
34
34
const fs = require ( 'fs' ) ;
35
- const { createCompiler } = require ( 'react-dev-utils/WebpackDevServerUtils' ) ;
36
35
const webpack = require ( 'webpack' ) ;
37
-
38
- const configFactory = require ( '../config/webpack.config.ssr' ) ;
36
+ const { createCompiler } = require ( 'react-dev-utils/WebpackDevServerUtils' ) ;
39
37
const paths = require ( '../config/paths' ) ;
38
+ const configFactory = require ( '../config/webpack.config.ssr' ) ;
40
39
41
40
const statusFile = require ( './utils/statusFile' ) ;
42
41
43
42
const config = configFactory ( 'development' ) ;
44
43
const appName = require ( paths . appPackageJson ) . name ;
45
44
const useYarn = fs . existsSync ( paths . yarnLockFile ) ;
46
-
47
45
const useTypeScript = fs . existsSync ( paths . appTsConfig ) ;
48
46
const tscCompileOnError = process . env . TSC_COMPILE_ON_ERROR === 'true' ;
49
47
You can’t perform that action at this time.
0 commit comments