Skip to content

Commit 983ee71

Browse files
committed
fix: virtual entries only avaliable in build command
1 parent 086bd4a commit 983ee71

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function autoMpaHTMLPlugin(pluginOption?: PluginOption): Plugin {
3535
: undefined;
3636
},
3737
load: (id) => {
38-
return virtualMap.get(id)
38+
if (cmd !== 'serve') return virtualMap.get(id)
3939
},
4040
buildStart: async () => {
4141
// if (cmd !== 'serve') await prepareTempEntries(entries.entries, opt).catch(e => {

0 commit comments

Comments
 (0)