diff --git a/packages/editor/webpack.prod.js b/packages/editor/webpack.prod.js index d0393a58..8dfe4827 100644 --- a/packages/editor/webpack.prod.js +++ b/packages/editor/webpack.prod.js @@ -2,6 +2,13 @@ const { merge } = require('webpack-merge'); const common = require('./webpack.common'); const { CleanWebpackPlugin } = require('clean-webpack-plugin'); +// '@emotion/styled': '@emotion/styled', +// '@emotion/react': '@emotion/react', +// "@mui/system": "@mui/system", +// "@mui": "@mui", +// "@mui/material": "@mui/material", +// "@mui/material/esm": "@mui/material/esm", + const prodConfig = { optimization: { usedExports: true, @@ -11,18 +18,13 @@ const prodConfig = { '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/ + /^@mui\.*/, + /^@emotion\.*/, + /^lodash/ ], plugins: [new CleanWebpackPlugin()],