We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 758ddbf commit 04ab50dCopy full SHA for 04ab50d
src/vite.ts
@@ -54,7 +54,7 @@ export default function i18n(options: string | VitePluginOptionsInterface = 'lan
54
files = generateFiles(langPath, langPaths)
55
},
56
handleHotUpdate(ctx) {
57
- if (/lang\/.*\.php$/.test(ctx.file)) {
+ if ([langPath, ...additionalLangPaths].some(path => new RegExp(`${path}.*\\.php$`).test(ctx.file))) {
58
const langPaths = prepareExtendedParsedLangFiles([frameworkLangPath, langPath, ...additionalLangPaths])
59
60
0 commit comments