Skip to content

Commit 605b3b0

Browse files
committed
perf: only record type deps map in dev
1 parent d73c8e7 commit 605b3b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/plugin-vue/src/script.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export function resolveScript(
7474
: undefined,
7575
})
7676

77-
if (resolved?.deps) {
77+
if (!options.isProduction && resolved?.deps) {
7878
for (const [key, sfcs] of typeDepToSFCMap) {
7979
if (sfcs.has(descriptor.filename) && !resolved.deps.includes(key)) {
8080
sfcs.delete(descriptor.filename)

0 commit comments

Comments
 (0)