We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f3962e commit fb79248Copy full SHA for fb79248
src/vite.ts
@@ -16,7 +16,12 @@ export default function i18n(options: string | VitePluginOptionsInterface = 'lan
16
let exitHandlersBound: boolean = false
17
18
const clean = () => {
19
- files.forEach((file) => unlinkSync(langPath + file.name))
+ files.forEach((file) => {
20
+ const filePath = langPath + file.name
21
+ if (existsSync(filePath)) {
22
+ unlinkSync(filePath)
23
+ }
24
+ })
25
26
files = []
27
0 commit comments