Skip to content

Commit ab1f65d

Browse files
committed
fix: use react from external source when building dist
1 parent b95b980 commit ab1f65d

File tree

3 files changed

+82
-9
lines changed

3 files changed

+82
-9
lines changed

package-lock.json

+80-6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,7 @@
6868
"prop-types": "^15.5.10",
6969
"query-string": "^5.1.1",
7070
"raw-loader": "^4.0.0",
71-
"react": "^16.0.0",
7271
"react-contextmenu": "^2.9.4",
73-
"react-dom": "^16.0.0",
7472
"react-draggable": "^3.0.5",
7573
"react-ga": "^2.5.3",
7674
"react-intl": "^2.9.0",
@@ -136,7 +134,7 @@
136134
"redux-mock-store": "1.5.5",
137135
"rimraf": "2.7.1",
138136
"scratch-semantic-release-config": "3.0.0",
139-
"scratch-webpack-configuration": "1.5.1",
137+
"scratch-webpack-configuration": "1.6.0",
140138
"selenium-webdriver": "3.6.0",
141139
"semantic-release": "19.0.5",
142140
"stream-browserify": "3.0.0",

webpack.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ const distConfig = baseConfig.clone()
9393
path: path.resolve(__dirname, 'dist')
9494
}
9595
})
96+
.addExternals(['react', 'react-dom'])
9697
.addPlugin(
9798
new CopyWebpackPlugin({
9899
patterns: [

0 commit comments

Comments
 (0)