Skip to content

Commit c11242a

Browse files
authored
fix: exclude virtuals from resource plugin (#3603)
1 parent 3c2f5ac commit c11242a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/transform/resource.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ export const ResourcePlugin = (options: BundlerPluginOptions, ctx: I18nNuxtConte
8484
// ensure imported resources are transformed as well
8585
const staticImports = findStaticImports(_code)
8686
for (const x of staticImports) {
87+
if (x.specifier.startsWith('\0')) continue
8788
i18nPathSet.add(await resolvePath(resolve(dirname(id), x.specifier)))
8889
}
8990

0 commit comments

Comments
 (0)