File tree Expand file tree Collapse file tree 10 files changed +3
-23
lines changed Expand file tree Collapse file tree 10 files changed +3
-23
lines changed Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const fs = require ( 'fs' ) ;
42const path = require ( 'path' ) ;
53const paths = require ( './paths' ) ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31// This is a custom Jest transformer turning style imports into empty objects.
42// http://facebook.github.io/jest/docs/en/webpack.html
53
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const path = require ( 'path' ) ;
42
53// This is a custom Jest transformer turning file imports into filenames.
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const path = require ( 'path' ) ;
42const fs = require ( 'fs' ) ;
53const url = require ( 'url' ) ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const fs = require ( 'fs' ) ;
42const path = require ( 'path' ) ;
53const resolve = require ( 'resolve' ) ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const fs = require ( 'fs' ) ;
42const path = require ( 'path' ) ;
53const webpack = require ( 'webpack' ) ;
@@ -261,7 +259,7 @@ module.exports = {
261259 options : {
262260 formatter : require . resolve ( 'react-dev-utils/eslintFormatter' ) ,
263261 eslintPath : require . resolve ( 'eslint' ) ,
264-
262+
265263 } ,
266264 loader : require . resolve ( 'eslint-loader' ) ,
267265 } ,
@@ -294,7 +292,7 @@ module.exports = {
294292 customize : require . resolve (
295293 'babel-preset-react-app/webpack-overrides'
296294 ) ,
297-
295+
298296 plugins : [
299297 [
300298 require . resolve ( 'babel-plugin-named-asset-import' ) ,
@@ -332,7 +330,7 @@ module.exports = {
332330 cacheDirectory : true ,
333331 // Save disk space when time isn't as important
334332 cacheCompression : true ,
335-
333+
336334 // If an error happens in a package, it's possible to be
337335 // because it was compiled. Thus, we don't want the browser
338336 // debugger to show the original code. Instead, the code
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31const errorOverlayMiddleware = require ( 'react-dev-utils/errorOverlayMiddleware' ) ;
42const evalSourceMapMiddleware = require ( 'react-dev-utils/evalSourceMapMiddleware' ) ;
53const noopServiceWorkerMiddleware = require ( 'react-dev-utils/noopServiceWorkerMiddleware' ) ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31// Do this as the first thing so that any code reading it knows the right env.
42process . env . BABEL_ENV = 'production' ;
53process . env . NODE_ENV = 'production' ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31// Do this as the first thing so that any code reading it knows the right env.
42process . env . BABEL_ENV = 'development' ;
53process . env . NODE_ENV = 'development' ;
Original file line number Diff line number Diff line change 1- 'use strict' ;
2-
31// Do this as the first thing so that any code reading it knows the right env.
42process . env . BABEL_ENV = 'test' ;
53process . env . NODE_ENV = 'test' ;
You can’t perform that action at this time.
0 commit comments