From 43418787ae31e49a36b5e14e0e58f5a11c2fc070 Mon Sep 17 00:00:00 2001 From: Erwin Stone Date: Fri, 31 Dec 2021 09:31:47 +0700 Subject: [PATCH] target esnext --- rollup.config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rollup.config.js b/rollup.config.js index 9cad68f..b36c239 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -20,7 +20,7 @@ export default defineConfig([ { banner, format: 'umd', file: pkg.main, name }, { banner, format: 'es', file: pkg.module }, ], - plugins: [esbuild()], + plugins: [esbuild({ target: 'esnext' })], }, { input: pkg.source, @@ -28,6 +28,6 @@ export default defineConfig([ { banner, format: 'umd', file: pkg.main.slice(0, -2) + 'min.js', name }, { banner, format: 'es', file: pkg.module.slice(0, -2) + 'min.js' }, ], - plugins: [esbuild({ minify: true })], + plugins: [esbuild({ target: 'esnext', minify: true })], }, ])