@lingui/swc-plugin 6.0.0-next.0 → 6.0.0-next.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
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div align="center">
4
4
 
5
- A Rust versions of [LinguiJS Macro](https://lingui.dev/ref/macro) [<img src="https://img.shields.io/badge/beta-yellow"/>](https://github.com/lingui/swc-plugin)
5
+ A Rust version of [LinguiJS Macro](https://lingui.dev/ref/macro) [<img src="https://img.shields.io/badge/beta-yellow"/>](https://github.com/lingui/swc-plugin)
6
6
 
7
7
  [![npm](https://img.shields.io/npm/v/@lingui/swc-plugin?logo=npm&cacheSeconds=1800)](https://www.npmjs.com/package/@lingui/swc-plugin)
8
8
  [![npm](https://img.shields.io/npm/dt/@lingui/swc-plugin?cacheSeconds=500)](https://www.npmjs.com/package/@lingui/swc-plugin)
@@ -51,8 +51,17 @@ https://swc.rs/docs/configuration/swcrc
51
51
  // "trans": ["@lingui/react", "Trans"]
52
52
  // }
53
53
  // Lingui strips non-essential fields in production builds for performance.
54
+ // Docs https://lingui.dev/guides/optimizing-bundle-size
54
55
  // You can override the default behavior with:
55
56
  // "stripNonEssentialFields": false/true
57
+
58
+ // Compatibility option allows to use v6.* SWC Plugin release channel with @lingui/cli@5.*
59
+ // Controls the BASE64 alphabet used for generating message IDs.
60
+ // - false (default): Uses URL-safe BASE64 alphabet (Lingui v6 behavior)
61
+ // - true: Uses standard BASE64 alphabet (Lingui v5 behavior for compatibility)
62
+ //
63
+ // IMPORTANT: This option is temporal and will be removed in the next major release.
64
+ // "useLinguiV5IdGeneration": true
56
65
  },
57
66
  ],
58
67
  ],
@@ -127,6 +136,7 @@ To learn more about SWC Plugins compatibility check this issue https://github.co
127
136
  - Version `0.1.0` ~ `0.*` compatible with `@lingui/core@3.*`
128
137
  - Version `4.*` compatible with `@lingui/core@4.*`
129
138
  - Version `5.*` compatible with `@lingui/core@5.*`
139
+ - Version `6.*` compatible with `@lingui/core@5.*` with `useLinguiV5IdGeneration: true` and `@lingui/core@6.*`
130
140
 
131
141
  ## License
132
142
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/swc-plugin",
3
- "version": "6.0.0-next.0",
3
+ "version": "6.0.0-next.2",
4
4
  "description": "A SWC Plugin for LinguiJS",
5
5
  "author": {
6
6
  "name": "Timofei Iatsenko",
@@ -31,7 +31,7 @@
31
31
  },
32
32
  "files": [],
33
33
  "peerDependencies": {
34
- "@lingui/core": "5"
34
+ "@lingui/core": "5 || 6"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@swc/core": {