bill 3 năm trước cách đây
mục cha
commit
9785eeeed7
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      vite.config.ts

+ 3 - 0
vite.config.ts

@@ -4,6 +4,9 @@ import { resolve } from 'path';
 
 export default defineConfig( {
 	build: {
+		commonjsOptions: {
+			 esmExternals: true
+		},
 		rollupOptions: {
 			input: {
 				b3dmExample: resolve( __dirname, 'example/b3dmExample.html' ),