From 43104574a06410d847ffb4fa891190a8deac7297 Mon Sep 17 00:00:00 2001 From: aviklar10 Date: Mon, 25 Mar 2019 09:48:13 +0200 Subject: [PATCH 1/2] new react-script without ModuleScopePlugin. --- packages/react-scripts/config/webpack.config.js | 2 +- packages/react-scripts/package.json | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 746884a03eb..99c10842f58 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -285,7 +285,7 @@ module.exports = function(webpackEnv) { // To fix this, we prevent you from importing files out of src/ -- if you'd like to, // please link the files into your node_modules/ and let module-resolution kick in. // Make sure your source files are compiled, as they will not be processed in any way. - new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), + // new ModuleScopePlugin(paths.appSrc, [paths.appPackageJson]), ], }, resolveLoader: { diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 1337707fbd8..d06c1d707e6 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,6 +1,6 @@ { - "name": "react-scripts", - "version": "2.1.2", + "name": "cptls-react-scripts", + "version": "2.1.3", "description": "Configuration and scripts for Create React App.", "repository": "facebook/create-react-app", "license": "MIT", @@ -19,6 +19,9 @@ "template-typescript", "utils" ], + "publishConfig": { + "registry": "http://nexus.capitolis.com:8081/repository/cptls-npm/" + }, "bin": { "react-scripts": "./bin/react-scripts.js" }, From bb031b1ae25e4c7d1786d2360ea1992d42dfca72 Mon Sep 17 00:00:00 2001 From: aviklar10 Date: Mon, 25 Mar 2019 09:49:00 +0200 Subject: [PATCH 2/2] new react-script without ModuleScopePlugin. --- packages/react-scripts/config/webpack.config.js | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 99c10842f58..2c39968b07c 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -24,7 +24,6 @@ const ManifestPlugin = require('webpack-manifest-plugin'); const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin'); const WorkboxWebpackPlugin = require('workbox-webpack-plugin'); const WatchMissingNodeModulesPlugin = require('react-dev-utils/WatchMissingNodeModulesPlugin'); -const ModuleScopePlugin = require('react-dev-utils/ModuleScopePlugin'); const getCSSModuleLocalIdent = require('react-dev-utils/getCSSModuleLocalIdent'); const paths = require('./paths'); const getClientEnvironment = require('./env');