change to class

This commit is contained in:
2024-03-03 02:53:49 +08:00
parent 6f896c8695
commit 14b302bd1a
3 changed files with 27 additions and 11 deletions
+7 -1
View File
@@ -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: {