@@ -12,7 +12,7 @@ const fs = require('fs');
12
12
const path = require ( 'path' ) ;
13
13
const webpack = require ( 'webpack' ) ;
14
14
const resolve = require ( 'resolve' ) ;
15
- const PnpWebpackPlugin = require ( 'pnp-webpack-plugin' ) ;
15
+ // const PnpWebpackPlugin = require('pnp-webpack-plugin');
16
16
const HtmlWebpackPlugin = require ( 'html-webpack-plugin' ) ;
17
17
const CaseSensitivePathsPlugin = require ( 'case-sensitive-paths-webpack-plugin' ) ;
18
18
const InlineChunkHtmlPlugin = require ( 'react-dev-utils/InlineChunkHtmlPlugin' ) ;
@@ -323,7 +323,10 @@ module.exports = function(webpackEnv) {
323
323
plugins : [
324
324
// Adds support for installing with Plug'n'Play, leading to faster installs and adding
325
325
// guards against forgotten dependencies and such.
326
- PnpWebpackPlugin ,
326
+ // Webpack 5 Change: PnP is supported by default in Webpack 5.
327
+ // See https://github.com/arcanis/pnp-webpack-plugin/issues/22#issuecomment-597495032
328
+ // PnpWebpackPlugin,
329
+
327
330
// Prevents users from importing files from outside of src/ (or node_modules/).
328
331
// This often causes confusion because we only process files within src/ with babel.
329
332
// To fix this, we prevent you from importing files out of src/ -- if you'd like to,
@@ -332,13 +335,13 @@ module.exports = function(webpackEnv) {
332
335
new ModuleScopePlugin ( paths . appSrc , [ paths . appPackageJson ] ) ,
333
336
] ,
334
337
} ,
335
- resolveLoader : {
336
- plugins : [
337
- // Also related to Plug'n'Play, but this time it tells webpack to load its loaders
338
- // from the current package.
339
- PnpWebpackPlugin . moduleLoader ( module ) ,
340
- ] ,
341
- } ,
338
+ // resolveLoader: {
339
+ // plugins: [
340
+ // // Also related to Plug'n'Play, but this time it tells webpack to load its loaders
341
+ // // from the current package.
342
+ // PnpWebpackPlugin.moduleLoader(module),
343
+ // ],
344
+ // },
342
345
module : {
343
346
strictExportPresence : true ,
344
347
rules : [
0 commit comments