Browse Source

chore: vite build target modify

richard1015 4 years ago
parent
commit
492cb33e97
1 changed files with 2 additions and 2 deletions
  1. 2 2
      vite.config.build.ts

+ 2 - 2
vite.config.build.ts

@@ -24,6 +24,7 @@ export default defineConfig({
   },
   plugins: [vue()],
   build: {
+    target: 'esnext',
     rollupOptions: {
       // 请确保外部化那些你的库中不需要的依赖
       external: ['vue'],
@@ -39,7 +40,6 @@ export default defineConfig({
       entry: 'src/nutui.ts',
       name: 'nutui',
       formats: ['es', 'umd']
-    },
-    emptyOutDir: false
+    }
   }
 });