File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ export const viteConfig: UserConfig = {
8383 } ,
8484 output : {
8585 inlineDynamicImports : false ,
86- chunkFileNames : "[hash].js" ,
86+ chunkFileNames : "[name]-[ hash].js" ,
8787 manualChunks : ( id ) => {
8888 if ( id . includes ( "node_modules" ) ) {
8989 // UI LIBRARIES
@@ -194,6 +194,7 @@ export const viteConfig: UserConfig = {
194194 } ,
195195 } ,
196196 commonjsOptions : {
197+ transformMixedEsModules : true ,
197198 defaultIsModuleExports : ( id ) => {
198199 if ( id . indexOf ( "antd/lib" ) !== - 1 ) {
199200 return false ;
@@ -288,7 +289,7 @@ const browserCheckConfig: UserConfig = {
288289 copyPublicDir : true ,
289290 emptyOutDir : true ,
290291 lib : {
291- formats : [ "iife " ] ,
292+ formats : [ "es " ] ,
292293 name : "BrowserCheck" ,
293294 entry : "./src/browser-check.ts" ,
294295 fileName : ( ) => {
You can’t perform that action at this time.
0 commit comments