Skip to content

Commit

Permalink
perf: only record type deps map in dev
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Apr 18, 2023
1 parent d73c8e7 commit 605b3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/plugin-vue/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export function resolveScript(
: undefined,
})

if (resolved?.deps) {
if (!options.isProduction && resolved?.deps) {
for (const [key, sfcs] of typeDepToSFCMap) {
if (sfcs.has(descriptor.filename) && !resolved.deps.includes(key)) {
sfcs.delete(descriptor.filename)
Expand Down

0 comments on commit 605b3b0

Please sign in to comment.