Dependencies cleanup

This commit is contained in:
Paulo Veiga
2022-11-12 15:17:06 +00:00
parent e3298e44f7
commit cfa54fbe8c
10 changed files with 341 additions and 445 deletions

View File

@ -28,8 +28,8 @@
"copy-webpack-plugin": "^10.2.1",
"css-loader": "^6.7.1",
"cypress": "^10.11.0",
"eslint": "^7.14.0",
"cypress-image-snapshot": "^4.0.1",
"eslint": "^7.14.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
@ -40,27 +40,22 @@
"style-loader": "^3.3.1",
"ts-jest": "^27.1.0",
"typescript": "^4.8.4",
"webpack": "^5.74.0",
"webpack-merge": "^5.8.0"
"webpack": "^5.75.0"
},
"dependencies": {
"@emotion/styled": "^11.10.5",
"@wisemapping/mindplot": "^5.0.15",
"emoji-picker-react": "^4.4.4",
"react-color": "^2.19.3",
"react-dom": "^18.2.0",
"styled-components": "^5.3.6"
"react-color": "^2.19.3"
},
"peerDependencies": {
"@emotion": "^11.10.5",
"@emotion/react": "^11.10.5",
"@emotion/styled": "^11.10.5",
"@mui/icons-material": "^5.9.3",
"@mui/material": "^5.10.11",
"lodash": "^4.17.14",
"@mui/material/esm": "^5.10.11",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-intl": "^6.2.1",
"styled-components": "^5.3.6"
}
}
}

View File

@ -11,8 +11,7 @@ module.exports = {
},
stats: {
errorDetails: true,
},
entry: {
}, entry: {
'editor.bundle': path.join(__dirname, 'src', 'index.tsx'),
},
mode: 'development',

View File

@ -7,14 +7,24 @@ const prodConfig = {
usedExports: true,
minimize: true,
},
externals: {
externals: [{
'react': 'react',
'react-dom': 'react-dom',
'react-intl': 'react-intl',
'@emotion/styled': '@emotion/styled',
'@emotion/react': '@emotion/react',
"@mui/system": "@mui/system",
"@mui": "@mui",
"@mui/material": "@mui/material",
"@mui/material/esm": "@mui/material/esm",
'styled-components': 'styled-components',
'xml-formatter': 'xml-formatter',
'lodash-es': 'lodash-es',
},
/^@mui/,
/^lodash/
],
plugins: [new CleanWebpackPlugin()],
};