File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -893,15 +893,6 @@ export function onRollupWarning(
893
893
return
894
894
}
895
895
896
- // Rollup tracks the build phase slightly earlier before `buildEnd` is called,
897
- // so there's a chance we can call `this.addWatchFile` in the invalid phase. Skip for now.
898
- if (
899
- warning . plugin === 'vite:worker-import-meta-url' &&
900
- warning . pluginCode === 'INVALID_ROLLUP_PHASE'
901
- ) {
902
- return
903
- }
904
-
905
896
if ( warningIgnoreList . includes ( warning . code ! ) ) {
906
897
return
907
898
}
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ export async function resolvePlugins(
32
32
postPlugins : Plugin [ ] ,
33
33
) : Promise < Plugin [ ] > {
34
34
const isBuild = config . command === 'build'
35
+ const isWorker = config . isWorker
35
36
const buildPlugins = isBuild
36
37
? await ( await import ( '../build' ) ) . resolveBuildPlugins ( config )
37
38
: { pre : [ ] , post : [ ] }
@@ -47,7 +48,7 @@ export async function resolvePlugins(
47
48
]
48
49
: [ ] ) ,
49
50
isBuild ? metadataPlugin ( ) : null ,
50
- watchPackageDataPlugin ( config . packageCache ) ,
51
+ ! isWorker ? watchPackageDataPlugin ( config . packageCache ) : null ,
51
52
preAliasPlugin ( config ) ,
52
53
aliasPlugin ( { entries : config . resolve . alias } ) ,
53
54
...prePlugins ,
You can’t perform that action at this time.
0 commit comments