@inline-i18n-multi/swc-plugin 0.1.1 → 0.1.3

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.
Files changed (2) hide show
  1. package/README.md +69 -0
  2. package/package.json +1 -1
package/README.md ADDED
@@ -0,0 +1,69 @@
1
+ > **Important:** For complete documentation, examples, and best practices, please read the [full documentation on GitHub](https://github.com/exiivy98/inline-i18n-multi).
2
+
3
+ # @inline-i18n-multi/swc-plugin
4
+
5
+ SWC plugin for inline-i18n-multi build-time optimization.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @inline-i18n-multi/swc-plugin --save-dev
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ Add to your `.swcrc`:
16
+
17
+ ```json
18
+ {
19
+ "jsc": {
20
+ "experimental": {
21
+ "plugins": [
22
+ ["@inline-i18n-multi/swc-plugin", {
23
+ "defaultLocale": "en",
24
+ "locales": ["en", "ko", "ja"]
25
+ }]
26
+ ]
27
+ }
28
+ }
29
+ }
30
+ ```
31
+
32
+ ### With Next.js
33
+
34
+ ```js
35
+ // next.config.js
36
+ module.exports = {
37
+ experimental: {
38
+ swcPlugins: [
39
+ ['@inline-i18n-multi/swc-plugin', {
40
+ defaultLocale: 'en',
41
+ locales: ['en', 'ko', 'ja']
42
+ }]
43
+ ]
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## What It Does
49
+
50
+ This plugin optimizes `it()` calls at build time by:
51
+ - Extracting translations for static analysis
52
+ - Enabling dead code elimination for unused locales
53
+ - Improving runtime performance (faster than Babel)
54
+
55
+ ## Requirements
56
+
57
+ - SWC 1.3.0+
58
+ - Rust toolchain (for building from source)
59
+
60
+ ## Documentation
61
+
62
+ **Please read the [full documentation on GitHub](https://github.com/exiivy98/inline-i18n-multi)** for:
63
+ - Complete API reference
64
+ - Framework integrations (React, Next.js)
65
+ - Best practices and examples
66
+
67
+ ## License
68
+
69
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inline-i18n-multi/swc-plugin",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "SWC plugin for inline-i18n-multi build-time optimization",
5
5
  "keywords": [
6
6
  "swc-plugin",