Skip to content

Commit

Permalink
fix: only return transform for vue files (#428)
Browse files Browse the repository at this point in the history
* fix: only return transform for vue files

* fix: move return statement inside compiler check
  • Loading branch information
BobbieGoede authored Dec 21, 2024
1 parent 28781f3 commit 15e7d54
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions packages/unplugin-vue-i18n/src/core/directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,13 @@ export function directivePlugin({
vuePluginOptions,
translationIdentifiers
)
return {
code,
map: { version: 3, mappings: '', sources: [] } as any
}
}
}
}

return {
code,
map: { version: 3, mappings: '', sources: [] } as any
}
}
}
}
Expand Down

0 comments on commit 15e7d54

Please sign in to comment.