Skip to content

Commit 5b7a306

Browse files
committed
Minor tweaks
1 parent 9a70038 commit 5b7a306

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

packages/react-scripts/config/webpack.config.dev.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ module.exports = {
9696
'react-native': 'react-native-web'
9797
}
9898
},
99+
// @remove-on-eject-begin
99100
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
100101
// directory of `react-scripts` itself rather than the project directory.
101-
// You can remove this after ejecting.
102102
resolveLoader: {
103103
root: paths.ownNodeModules,
104104
moduleTemplates: ['*-loader']
105105
},
106+
// @remove-on-eject-end
106107
module: {
107108
// First, run the linter.
108109
// It's important to do this before Babel processes the JS.

packages/react-scripts/config/webpack.config.prod.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,13 +96,14 @@ module.exports = {
9696
'react-native': 'react-native-web'
9797
}
9898
},
99+
// @remove-on-eject-begin
99100
// Resolve loaders (webpack plugins for CSS, images, transpilation) from the
100101
// directory of `react-scripts` itself rather than the project directory.
101-
// You can remove this after ejecting.
102102
resolveLoader: {
103103
root: paths.ownNodeModules,
104104
moduleTemplates: ['*-loader']
105105
},
106+
// @remove-on-eject-end
106107
module: {
107108
// First, run the linter.
108109
// It's important to do this before Babel processes the JS.

packages/react-scripts/scripts/test.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ process.env.PUBLIC_URL = '';
1919
require('dotenv').config({silent: true});
2020

2121
const jest = require('jest');
22-
const path = require('path');
23-
const paths = require('../config/paths');
24-
2522
const argv = process.argv.slice(2);
2623

2724
// Watch unless on CI
@@ -32,11 +29,12 @@ if (!process.env.CI) {
3229
// @remove-on-eject-begin
3330
// This is not necessary after eject because we embed config into package.json.
3431
const createJestConfig = require('./utils/createJestConfig');
32+
const path = require('path');
33+
const paths = require('../config/paths');
3534
argv.push('--config', JSON.stringify(createJestConfig(
3635
relativePath => path.resolve(__dirname, '..', relativePath),
3736
path.resolve(paths.appSrc, '..'),
3837
false
3938
)));
4039
// @remove-on-eject-end
41-
4240
jest.run(argv);

0 commit comments

Comments
 (0)