更新若干
This commit is contained in:
1 parent
54c90072fb
commit
5682069553
59 files changed
+3813
-1617
No files matched your search
@@ -21,6 +21,14 @@ const rootDir = resolveRootDir()
|
||||
export default defineConfig({
|
||||
base: '/h5/',
|
||||
plugins: [uni()],
|
||||
// 微信小程序的代码压缩器不支持 ES2020 语法(?? / ?.),
|
||||
// 在构建阶段统一降级到 ES2017,避免上传时「代码压缩」报 Unexpected token ?
|
||||
build: {
|
||||
target: ['es2017', 'chrome61', 'safari11', 'firefox60'],
|
||||
},
|
||||
esbuild: {
|
||||
target: 'es2017',
|
||||
},
|
||||
resolve: {
|
||||
alias: {
|
||||
'@': rootDir,
|
||||
|
||||
Reference in new issue
Block a user