From 9477e795ceaf559a62e8dd245170649d36cc2a73 Mon Sep 17 00:00:00 2001 From: Alexander Syed Date: Tue, 23 Jun 2020 15:45:49 +0200 Subject: [PATCH 1/2] Update `package.json` Set name to publish to the `@ptv.js` npm organization Update urls --- packages/react-scripts/package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/react-scripts/package.json b/packages/react-scripts/package.json index 63e7faf390c..dff4420de58 100644 --- a/packages/react-scripts/package.json +++ b/packages/react-scripts/package.json @@ -1,10 +1,10 @@ { - "name": "react-scripts", + "name": "@ptv.js/react-scripts", "version": "3.4.1", "description": "Configuration and scripts for Create React App.", "repository": { "type": "git", - "url": "https://github.com/facebook/create-react-app.git", + "url": "https://github.com/PrometheanTV/create-react-app.git", "directory": "packages/react-scripts" }, "license": "MIT", @@ -12,7 +12,7 @@ "node": ">=8.10" }, "bugs": { - "url": "https://github.com/facebook/create-react-app/issues" + "url": "https://github.com/PrometheanTV/create-react-app/issues" }, "files": [ "bin", From f1d83baf163d455ea932d7870bd0662c57ba83d7 Mon Sep 17 00:00:00 2001 From: Alexander Syed Date: Tue, 23 Jun 2020 15:47:28 +0200 Subject: [PATCH 2/2] Update webpack config to support use of systemjs --- packages/react-scripts/config/webpack.config.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.js b/packages/react-scripts/config/webpack.config.js index 25840d91148..e9af818397e 100644 --- a/packages/react-scripts/config/webpack.config.js +++ b/packages/react-scripts/config/webpack.config.js @@ -331,8 +331,14 @@ module.exports = function(webpackEnv) { module: { strictExportPresence: true, rules: [ - // Disable require.ensure as it's not a standard language feature. - { parser: { requireEnsure: false } }, + { + parser: { + // Disable require.ensure as it's not a standard language feature. + requireEnsure: false, + // Prevent Webpack from managing use of systemjs + system: false + } + }, // First, run the linter. // It's important to do this before Babel processes the JS.