Skip to content

Commit

Permalink
Chore(web-react): Fix UMD build that integrates common package
Browse files Browse the repository at this point in the history
  • Loading branch information
literat committed Apr 23, 2024
1 parent f85a340 commit 98e12c8
Show file tree
Hide file tree
Showing 3 changed files with 126 additions and 76 deletions.
7 changes: 6 additions & 1 deletion packages/web-react/config/webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ module.exports = {
entry: {
index: './src/index.ts',
},
resolve: { extensions: ['.ts', '.tsx', '.js'] },
resolve: {
extensions: ['.ts', '.tsx', '.js'],
alias: {
'@lmc-eu/spirit-common': path.resolve(__dirname, '../../common/'),
},
},
externals: [
{
react: {
Expand Down
1 change: 1 addition & 0 deletions packages/web-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
"eslint-plugin-react": "7.34.1",
"eslint-plugin-react-hooks": "4.6.0",
"eslint-plugin-standard": "5.0.0",
"glob": "10.3.10",
"jest": "29.7.0",
"jest-cli": "29.7.0",
"jest-environment-jsdom": "29.7.0",
Expand Down
Loading

0 comments on commit 98e12c8

Please sign in to comment.