@intlify/unplugin-vue-i18n 7.0.0-beta.0 → 7.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -59,6 +59,25 @@ module.exports = {
59
59
 
60
60
  <br></details>
61
61
 
62
+ <details>
63
+ <summary>Rspack</summary><br>
64
+
65
+ ```ts
66
+ const VueI18nPlugin = require('@intlify/unplugin-vue-i18n/rspack')
67
+
68
+ // rspack.config.js
69
+ module.exports = {
70
+ /* ... */
71
+ plugins: [
72
+ VueI18nPlugin({
73
+ /* options */
74
+ })
75
+ ]
76
+ }
77
+ ```
78
+
79
+ <br></details>
80
+
62
81
  <details>
63
82
  <summary>Nuxt</summary><br>
64
83
 
@@ -379,7 +398,7 @@ If you are using petite-vue-i18n, you will need to set this value.
379
398
 
380
399
  Whether locale messages should be compiled by JIT (Just in Time) compilation with vue-i18n's message compiler.
381
400
 
382
- JIT compilation has been supported since vue-i18n v9.3. This means that since v9 was released until now, the message compiler compiles to executable JavaScript code, however it did not work in the CSP environment. Also, since this was an AOT (Ahead of Time) compilation, it was not possible to dynamically retrieve locale messages from the back-end Database and compose locale messages with programatic.
401
+ JIT compilation has been supported since vue-i18n v9.3. This means that since v9 was released until now, the message compiler compiles to executable JavaScript code, however it did not work in the CSP environment. Also, since this was an AOT (Ahead of Time) compilation, it was not possible to dynamically retrieve locale messages from the back-end Database and compose locale messages with programmatic.
383
402
 
384
403
  > [!WARNING]
385
404
  > Enabling JIT compilation causes the message compiler to generate AST objects for locale messages instead of JavaScript code. If you pre-compile locale messages with a tool such as the [Intlify CLI](https://github.com/intlify/cli) and import them dynamically, you need to rebuild that resource.
@@ -424,6 +443,7 @@ If do you will use this option, you need to enable `jitCompilation` option.
424
443
  ```
425
444
  - vite config: `resolve.alias`
426
445
  - webpack config: `resolve.alias`
446
+ - rspack config: `resolve.alias`
427
447
  ```
428
448
 
429
449
  If `false` is specified, Vue I18n (vue-i18n) package.json `module` field will be used.