Skip to content

Commit

Permalink
Fix typos, syntax (#1881)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheoKondak committed Jul 5, 2024
1 parent 2e46476 commit 5bf4b63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guide/advanced/optimization.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ As described in "[Different Distribution files](../extra/dist##from-cdn-or-witho

For bundler, it’s configured to bundle `vue-i18n.esm-bundler.js` with [`@intlify/unplugin-vue-i18n`](https://github.com/intlify/bundle-tools/tree/main/packages/unplugin-vue-i18n) as default. If you want to reduce the bundle size further, you can configure the bundler to use `vue-i18n.runtime.esm-bundler.js`, which is runtime only.

The use of ES Module `vue-i18n.runtime.esm-bundler.js` means that **all locale messages have to pre-compile to Message functions or AST resources**. what this means it improves performance because vue-i18n just only execute Message functions, so no compilation.
The use of ES Module `vue-i18n.runtime.esm-bundler.js` means that **all locale messages have to pre-compile to Message functions or AST resources**. What that means, is that it improves performance because vue-i18n only executes Message functions, so no compilation.

:::tip NOTE
Before v9.3, the locale messages will be compiled to Message functions, after v9.3 or later these will be compiled to AST with `@intlify/bundle-tools`.
Expand Down

0 comments on commit 5bf4b63

Please sign in to comment.