File tree Expand file tree Collapse file tree 2 files changed +0
-18
lines changed
packages/react-scripts/config Expand file tree Collapse file tree 2 files changed +0
-18
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ const HtmlWebpackPlugin = require('html-webpack-plugin');
17
17
const CaseSensitivePathsPlugin = require ( 'case-sensitive-paths-webpack-plugin' ) ;
18
18
const InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
19
19
const WatchMissingNodeModulesPlugin = require ( 'react-dev-utils/WatchMissingNodeModulesPlugin' ) ;
20
- const ModuleScopePlugin = require ( 'react-dev-utils/ModuleScopePlugin' ) ;
21
20
const getClientEnvironment = require ( './env' ) ;
22
21
const paths = require ( './paths' ) ;
23
22
@@ -118,14 +117,6 @@ module.exports = {
118
117
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
119
118
'react-native' : 'react-native-web' ,
120
119
} ,
121
- plugins : [
122
- // Prevents users from importing files from outside of src/ (or node_modules/).
123
- // This often causes confusion because we only process files within src/ with babel.
124
- // To fix this, we prevent you from importing files out of src/ -- if you'd like to,
125
- // please link the files into your node_modules/ and let module-resolution kick in.
126
- // Make sure your source files are compiled, as they will not be processed in any way.
127
- new ModuleScopePlugin ( paths . appSrc , [ paths . appPackageJson ] ) ,
128
- ] ,
129
120
} ,
130
121
module : {
131
122
strictExportPresence : true ,
Original file line number Diff line number Diff line change @@ -18,7 +18,6 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin');
18
18
const ManifestPlugin = require ( 'webpack-manifest-plugin' ) ;
19
19
const InterpolateHtmlPlugin = require ( 'react-dev-utils/InterpolateHtmlPlugin' ) ;
20
20
const SWPrecacheWebpackPlugin = require ( 'sw-precache-webpack-plugin' ) ;
21
- const ModuleScopePlugin = require ( 'react-dev-utils/ModuleScopePlugin' ) ;
22
21
const paths = require ( './paths' ) ;
23
22
const getClientEnvironment = require ( './env' ) ;
24
23
@@ -122,14 +121,6 @@ module.exports = {
122
121
// https://www.smashingmagazine.com/2016/08/a-glimpse-into-the-future-with-react-native-for-web/
123
122
'react-native' : 'react-native-web' ,
124
123
} ,
125
- plugins : [
126
- // Prevents users from importing files from outside of src/ (or node_modules/).
127
- // This often causes confusion because we only process files within src/ with babel.
128
- // To fix this, we prevent you from importing files out of src/ -- if you'd like to,
129
- // please link the files into your node_modules/ and let module-resolution kick in.
130
- // Make sure your source files are compiled, as they will not be processed in any way.
131
- new ModuleScopePlugin ( paths . appSrc , [ paths . appPackageJson ] ) ,
132
- ] ,
133
124
} ,
134
125
module : {
135
126
strictExportPresence : true ,
You can’t perform that action at this time.
0 commit comments