Skip to content

Commit

Permalink
fix: use react from external source when building dist
Browse files Browse the repository at this point in the history
  • Loading branch information
KManolov3 committed Dec 4, 2024
1 parent b95b980 commit ab1f65d
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 9 deletions.
86 changes: 80 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,7 @@
"prop-types": "^15.5.10",
"query-string": "^5.1.1",
"raw-loader": "^4.0.0",
"react": "^16.0.0",
"react-contextmenu": "^2.9.4",
"react-dom": "^16.0.0",
"react-draggable": "^3.0.5",
"react-ga": "^2.5.3",
"react-intl": "^2.9.0",
Expand Down Expand Up @@ -136,7 +134,7 @@
"redux-mock-store": "1.5.5",
"rimraf": "2.7.1",
"scratch-semantic-release-config": "3.0.0",
"scratch-webpack-configuration": "1.5.1",
"scratch-webpack-configuration": "1.6.0",
"selenium-webdriver": "3.6.0",
"semantic-release": "19.0.5",
"stream-browserify": "3.0.0",
Expand Down
1 change: 1 addition & 0 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ const distConfig = baseConfig.clone()
path: path.resolve(__dirname, 'dist')
}
})
.addExternals(['react', 'react-dom'])
.addPlugin(
new CopyWebpackPlugin({
patterns: [
Expand Down

0 comments on commit ab1f65d

Please sign in to comment.