|
@@ -56,7 +56,6 @@ export default defineConfig({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- // alias: { antd: dirname(require.resolve('antd/package.json')) },
|
|
|
|
|
srcTranspiler: 'esbuild',
|
|
srcTranspiler: 'esbuild',
|
|
|
fastRefresh: true,
|
|
fastRefresh: true,
|
|
|
unocss: {
|
|
unocss: {
|
|
@@ -77,8 +76,6 @@ export default defineConfig({
|
|
|
proxy: proxy[REACT_APP_ENV || 'dev'],
|
|
proxy: proxy[REACT_APP_ENV || 'dev'],
|
|
|
manifest: { basePath: '/' },
|
|
manifest: { basePath: '/' },
|
|
|
extraBabelPlugins: [
|
|
extraBabelPlugins: [
|
|
|
- '@babel/plugin-proposal-nullish-coalescing-operator',
|
|
|
|
|
- '@babel/plugin-proposal-optional-chaining',
|
|
|
|
|
[
|
|
[
|
|
|
'import',
|
|
'import',
|
|
|
{
|
|
{
|
|
@@ -97,19 +94,9 @@ export default defineConfig({
|
|
|
},
|
|
},
|
|
|
'antd'
|
|
'antd'
|
|
|
]
|
|
]
|
|
|
- ]
|
|
|
|
|
- // externals: {
|
|
|
|
|
- // react: 'React',
|
|
|
|
|
- // 'react-dom': 'ReactDOM'
|
|
|
|
|
- // },
|
|
|
|
|
- // headScripts:
|
|
|
|
|
- // process.env.NODE_ENV === 'development'
|
|
|
|
|
- // ? [
|
|
|
|
|
- // 'https://d2.smartcost.com.cn/cach/cld/react18.1.0/react.development.js',
|
|
|
|
|
- // 'https://d2.smartcost.com.cn/cach/cld/react18.1.0/react-dom.development.js'
|
|
|
|
|
- // ]
|
|
|
|
|
- // : [
|
|
|
|
|
- // 'https://d2.smartcost.com.cn/cach/cld/react18.1.0/react.production.min.js',
|
|
|
|
|
- // 'https://d2.smartcost.com.cn/cach/cld/react18.1.0/react-dom.production.min.js'
|
|
|
|
|
- // ]
|
|
|
|
|
|
|
+ ],
|
|
|
|
|
+ externals: {
|
|
|
|
|
+ react: 'React',
|
|
|
|
|
+ 'react-dom': 'ReactDOM'
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|