Skip to content

Commit f1bbc7b

Browse files
authored
fix: move runtime code ti vite config
1 parent ac89a70 commit f1bbc7b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/index.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,7 @@ export default createUnplugin<Partial<Options> | undefined>(
129129
config.mode !== "production" &&
130130
options.hot !== false;
131131
},
132-
},
133-
132+
134133
resolveId(id) {
135134
if (id === runtimePublicPath) {
136135
return id;
@@ -142,7 +141,7 @@ export default createUnplugin<Partial<Options> | undefined>(
142141
return runtimeCode;
143142
}
144143
},
145-
144+
},
146145
async transform(source, id) {
147146
const isSsr = !!options.ssr;
148147
const currentFileExtension = getExtension(id);

0 commit comments

Comments
 (0)