From b9cdb8dea95ba348cd1e9dbb6c691addd96cae85 Mon Sep 17 00:00:00 2001 From: vuonghuuhung Date: Tue, 3 Dec 2024 01:23:28 +0700 Subject: [PATCH] feat: add target option to rollupOptions in vite.config --- vite.config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vite.config.ts b/vite.config.ts index 510f52d48..0d4a94869 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -36,6 +36,7 @@ export default defineConfig({ build: { commonjsOptions: { transformMixedEsModules: true }, outDir: path.resolve(__dirname, 'build'), - rollupOptions: {} + rollupOptions: {}, + target: "esnext" } });