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 @@ -444,12 +444,13 @@ export async function resolveBuildPlugins(config: ResolvedConfig): Promise<{
444
444
pre : [
445
445
completeSystemWrapPlugin ( ) ,
446
446
// ...(usePluginCommonjs ? [commonjsPlugin(options.commonjsOptions)] : []),
447
- dataURIPlugin ( ) ,
447
+ // rolldown has builtin support datauri, use a switch to control it for convenience
448
+ enableNativePlugin ? null : dataURIPlugin ( ) ,
448
449
...( ( await asyncFlatten ( arraify ( rollupOptionsPlugins ) ) ) . filter (
449
450
Boolean ,
450
451
) as Plugin [ ] ) ,
451
452
...( config . isWorker ? [ webWorkerPostPlugin ( ) ] : [ ] ) ,
452
- ] ,
453
+ ] . filter ( Boolean ) as Plugin [ ] ,
453
454
post : [
454
455
...buildImportAnalysisPlugin ( config ) ,
455
456
...( config . esbuild !== false ? [ buildEsbuildPlugin ( config ) ] : [ ] ) ,
You can’t perform that action at this time.
0 commit comments