Skip to content

Commit 15e7d54

Browse files
authored
fix: only return transform for vue files (#428)
* fix: only return transform for vue files * fix: move return statement inside compiler check
1 parent 28781f3 commit 15e7d54

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

packages/unplugin-vue-i18n/src/core/directive.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,14 +89,13 @@ export function directivePlugin({
8989
vuePluginOptions,
9090
translationIdentifiers
9191
)
92+
return {
93+
code,
94+
map: { version: 3, mappings: '', sources: [] } as any
95+
}
9296
}
9397
}
9498
}
95-
96-
return {
97-
code,
98-
map: { version: 3, mappings: '', sources: [] } as any
99-
}
10099
}
101100
}
102101
}

0 commit comments

Comments
 (0)