change to class
This commit is contained in:
+7
-1
@@ -27,7 +27,12 @@ export default defineConfig(async (merge, { command, mode }) => {
|
||||
}
|
||||
},
|
||||
framework: 'react',
|
||||
compiler: 'webpack5',
|
||||
compiler: {
|
||||
type: 'webpack5',
|
||||
prebundle: {
|
||||
exclude: ['taro-ui']
|
||||
}
|
||||
},
|
||||
cache: {
|
||||
enable: false // Webpack 持久化缓存配置,建议开启。默认配置请参考:https://docs.taro.zone/docs/config-detail#cache
|
||||
},
|
||||
@@ -58,6 +63,7 @@ export default defineConfig(async (merge, { command, mode }) => {
|
||||
}
|
||||
},
|
||||
h5: {
|
||||
esnextModules: ['taro-ui'],
|
||||
publicPath: '/',
|
||||
staticDirectory: 'static',
|
||||
output: {
|
||||
|
||||
Reference in New Issue
Block a user