Skip to content

Commit c2faf9c

Browse files
authored
Do not transform file if there are no translations (#31)
1 parent 9ed192f commit c2faf9c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/plugins/external-plugin.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,9 @@ export const unplugin = createUnplugin((options: ExternalPluginOptions, meta) =>
132132

133133
const translations = await getTranslationsForFile(id)
134134

135+
if (translations.length === 0)
136+
return
137+
135138
for (const { ftlPath } of translations)
136139
this.addWatchFile(ftlPath)
137140

0 commit comments

Comments
 (0)