Skip to content

Commit

Permalink
fix: config __dirname resolve
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <i@innei.in>
  • Loading branch information
Innei committed Sep 13, 2024
1 parent 92bfce0 commit f3f3cac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion configs/vite.render.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ function localesPlugin(): Plugin {
name: "locales-merge",
enforce: "post",
generateBundle(options, bundle) {

Check failure on line 21 in configs/vite.render.config.ts

View workflow job for this annotation

GitHub Actions / Lint and Typecheck (18.x)

'options' is declared but its value is never read.

Check failure on line 21 in configs/vite.render.config.ts

View workflow job for this annotation

GitHub Actions / release (macos-latest)

'options' is declared but its value is never read.

Check failure on line 21 in configs/vite.render.config.ts

View workflow job for this annotation

GitHub Actions / release (ubuntu-latest)

'options' is declared but its value is never read.

Check failure on line 21 in configs/vite.render.config.ts

View workflow job for this annotation

GitHub Actions / release (windows-latest)

'options' is declared but its value is never read.
const localesDir = path.resolve(__dirname, "locales")
const localesDir = path.resolve(__dirname, "../locales")
const namespaces = fs.readdirSync(localesDir)
const languageResources = {}

Expand Down
3 changes: 2 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export default ({ mode }) => {
__debug_proxy: resolve(ROOT, "/__debug_proxy.html"),
},
output: {
// experimentalMinChunkSize: 500_000,
// 10KB
experimentalMinChunkSize: 10_000,
},
},
},
Expand Down

0 comments on commit f3f3cac

Please sign in to comment.