mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(build): transform to es2018 syntax (#4090)
This commit is contained in:
@@ -27,7 +27,11 @@ export const buildFull = (minify: boolean) => async () => {
|
||||
exposeFilename: false,
|
||||
}),
|
||||
commonjs(),
|
||||
esbuild({ minify, sourceMap: minify }),
|
||||
esbuild({
|
||||
minify,
|
||||
sourceMap: minify,
|
||||
target: 'es2018',
|
||||
}),
|
||||
replace({
|
||||
'process.env.NODE_ENV': JSON.stringify('production'),
|
||||
|
||||
|
||||
@@ -34,6 +34,7 @@ export const buildModules = async () => {
|
||||
commonjs(),
|
||||
esbuild({
|
||||
sourceMap: true,
|
||||
target: 'es2018',
|
||||
}),
|
||||
filesize({ reporter }),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user