File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -63,9 +63,10 @@ export default function viteBundleObfuscator(config?: Partial<Config>): PluginOp
63
63
} else if ( isObject ( output . manualChunks ) ) {
64
64
_log . forceLog ( LOG_COLOR . warn , 'rollupOptions.output.manualChunks is an object, ignoring autoExcludeNodeModules configuration.' ) ;
65
65
} else if ( isFunction ( output . manualChunks ) ) {
66
+ const originalManualChunks = output . manualChunks as ( id : string , meta : Rollup . ManualChunkMeta ) => any ;
67
+
66
68
addChunks2Excludes ( ) ;
67
69
output . manualChunks = ( id : string , meta : Rollup . ManualChunkMeta ) => {
68
- const originalManualChunks = output . manualChunks as ( id : string , meta : Rollup . ManualChunkMeta ) => any ;
69
70
return defaultManualChunks ( id ) || originalManualChunks ( id , meta ) ;
70
71
} ;
71
72
}
You can’t perform that action at this time.
0 commit comments