fix: config `__dirname` resolve

Signed-off-by: Innei <i@innei.in>
This commit is contained in:
Innei 2024-09-13 20:05:47 +08:00
parent 92bfce0f7e
commit f3f3cac2b4
No known key found for this signature in database
GPG Key ID: 0F62D33977F021F7
2 changed files with 3 additions and 2 deletions

View File

@ -19,7 +19,7 @@ function localesPlugin(): Plugin {
name: "locales-merge",
enforce: "post",
generateBundle(options, bundle) {
const localesDir = path.resolve(__dirname, "locales")
const localesDir = path.resolve(__dirname, "../locales")
const namespaces = fs.readdirSync(localesDir)
const languageResources = {}

View File

@ -79,7 +79,8 @@ export default ({ mode }) => {
__debug_proxy: resolve(ROOT, "/__debug_proxy.html"),
},
output: {
// experimentalMinChunkSize: 500_000,
// 10KB
experimentalMinChunkSize: 10_000,
},
},
},