Skip to content

Commit

Permalink
fix: react: ignore react in production build to avoid conflicts (Eigh…
Browse files Browse the repository at this point in the history
…tfoldAI#29)

* fix: react: ignore react in production build to avoid conflicts

* chore: version: bump version in package json

* chore: npm: updates npm ignore
  • Loading branch information
dkilgore-eightfold authored and gclark-eightfold committed Apr 27, 2022
1 parent 5a9b00f commit 4d19101
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 6 deletions.
5 changes: 4 additions & 1 deletion packages/octuple/.npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ npm-debug.log*
README.md
stats.json
tsconfig.json
webpack.config.js
webpack.common.js
webpack.dev.js
webpack.prod.js
yarn.lock
yarn-debug.log*
yarn-error.log*
Expand All @@ -28,5 +30,6 @@ yarn-error.log*
.env.local
.env.production.local
.env.test.local
.versionrc.json

lib/octuple.js.LICENSE.txt
2 changes: 1 addition & 1 deletion packages/octuple/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@eightfold.ai/octuple",
"version": "0.0.2",
"version": "0.0.3",
"license": "MIT",
"main": "lib/octuple.js",
"types": "lib/octuple.d.ts",
Expand Down
12 changes: 8 additions & 4 deletions packages/octuple/webpack.prod.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,13 @@ process.env.NODE_ENV = 'production';

module.exports = {
...WebpackCommonConfig,
externals: {
react: 'commonjs react',
'react-dom': 'commonjs react-dom',
},
plugins: [
new webpack.DefinePlugin({
VERSION: JSON.stringify(require('./package.json').version)
})
]
};
VERSION: JSON.stringify(require('./package.json').version),
}),
],
};

0 comments on commit 4d19101

Please sign in to comment.