Skip to content

Commit

Permalink
Removing react from bundle per facebook/react#13991 (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
hodgef committed Sep 7, 2019
1 parent 8ab861b commit 0265ef8
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build/css/index.css

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

4 changes: 2 additions & 2 deletions build/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions config/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ module.exports = function(webpackEnv) {
? 'source-map'
: false
: isEnvDevelopment && 'cheap-module-source-map',
externals: {
'react': 'react',
'react-dom' : 'reactDOM'
},
// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
entry: isEnvProduction ? [paths.appLibIndexJs] : [
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-simple-keyboard",
"version": "2.0.0",
"version": "2.0.1",
"description": "React.js Virtual Keyboard",
"main": "build/index.js",
"types": "build/index.d.ts",
Expand Down Expand Up @@ -106,6 +106,10 @@
"webpack-manifest-plugin": "2.0.4",
"workbox-webpack-plugin": "4.3.1"
},
"peerDependencies": {
"react": "^16.9.0",
"react-dom": "^16.9.0"
},
"eslintConfig": {
"extends": "react-app"
},
Expand Down

0 comments on commit 0265ef8

Please sign in to comment.