@swc/core 1.2.108 → 1.2.109
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 +5 -5
- package/crates/swc_babel_compat/README.md +2 -1
- package/crates/swc_bundler/README.md +6 -6
- package/{css/parser → crates/swc_css_parser}/README.md +1 -1
- package/crates/swc_ecma_minifier/README.md +1 -1
- package/crates/swc_plugin/README.md +1 -1
- package/cspell.json +1 -4
- package/package.json +14 -14
- package/types.d.ts +1 -1
package/README.md
CHANGED
|
@@ -22,9 +22,9 @@
|
|
|
22
22
|
</a>
|
|
23
23
|
</p>
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
SWC (stands for `Speedy Web Compiler`) is a super-fast TypeScript / JavaScript compiler written in Rust. It's a library for Rust and JavaScript at the same time. If you are using SWC from Rust, see [rustdoc](https://rustdoc.swc.rs/swc/) and for most users, your entry point for using the library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/).
|
|
26
26
|
|
|
27
|
-
If you are using
|
|
27
|
+
If you are using SWC from JavaScript, please refer to [docs on the website](https://swc.rs/docs/installation/).
|
|
28
28
|
|
|
29
29
|
# Documentation
|
|
30
30
|
|
|
@@ -32,7 +32,7 @@ Check out the documentation [in the website](https://swc.rs/docs/installation/).
|
|
|
32
32
|
|
|
33
33
|
# Features
|
|
34
34
|
|
|
35
|
-
Please see [comparison with babel](https://swc.rs/docs/
|
|
35
|
+
Please see [comparison with babel](https://swc.rs/docs/migrating-from-babel).
|
|
36
36
|
|
|
37
37
|
# Performance
|
|
38
38
|
|
|
@@ -55,7 +55,7 @@ Please see [benchmark results](https://swc.rs/docs/benchmark-transform) on the w
|
|
|
55
55
|
</a>
|
|
56
56
|
</p>
|
|
57
57
|
|
|
58
|
-
|
|
58
|
+
SWC is a community-driven project, and is maintained by a group of [volunteers](https://opencollective.com/swc#team). If you'd like to help support the future of the project, please consider:
|
|
59
59
|
|
|
60
60
|
- Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
|
|
61
61
|
- Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
|
|
@@ -67,7 +67,7 @@ documentation useful ([ARCHITECTURE.md](ARCHITECTURE.md)).
|
|
|
67
67
|
|
|
68
68
|
## License
|
|
69
69
|
|
|
70
|
-
|
|
70
|
+
SWC is primarily distributed under the terms of both the MIT license
|
|
71
71
|
and the Apache License (Version 2.0).
|
|
72
72
|
|
|
73
73
|
See LICENSE-APACHE and LICENSE-MIT for details.
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
# swc_bundler
|
|
2
2
|
|
|
3
|
-
Bundler for the
|
|
3
|
+
Bundler for the SWC project.
|
|
4
4
|
|
|
5
5
|
## Features
|
|
6
6
|
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
7
|
+
- Clean merging (generated code is easy to optimize)
|
|
8
|
+
- Parallel file loading
|
|
9
|
+
- Tree shaking
|
|
10
|
+
- Common js support (aka `require`)
|
|
11
|
+
- Circular imports
|
|
12
12
|
|
|
13
13
|
Tests live at `/spack`.
|
package/cspell.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swc/core",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.109",
|
|
4
4
|
"description": "Super-fast alternative for babel",
|
|
5
5
|
"homepage": "https://swc.rs",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -50,22 +50,22 @@
|
|
|
50
50
|
"@node-rs/helper": "^1.0.0"
|
|
51
51
|
},
|
|
52
52
|
"optionalDependencies": {
|
|
53
|
-
"@swc/core-win32-x64-msvc": "^1.2.
|
|
54
|
-
"@swc/core-darwin-x64": "^1.2.
|
|
55
|
-
"@swc/core-linux-x64-gnu": "^1.2.
|
|
56
|
-
"@swc/core-linux-x64-musl": "^1.2.
|
|
57
|
-
"@swc/core-freebsd-x64": "^1.2.
|
|
58
|
-
"@swc/core-win32-ia32-msvc": "^1.2.
|
|
59
|
-
"@swc/core-linux-arm64-gnu": "^1.2.
|
|
60
|
-
"@swc/core-linux-arm-gnueabihf": "^1.2.
|
|
61
|
-
"@swc/core-darwin-arm64": "^1.2.
|
|
62
|
-
"@swc/core-android-arm64": "^1.2.
|
|
63
|
-
"@swc/core-linux-arm64-musl": "^1.2.
|
|
64
|
-
"@swc/core-win32-arm64-msvc": "^1.2.
|
|
53
|
+
"@swc/core-win32-x64-msvc": "^1.2.109",
|
|
54
|
+
"@swc/core-darwin-x64": "^1.2.109",
|
|
55
|
+
"@swc/core-linux-x64-gnu": "^1.2.109",
|
|
56
|
+
"@swc/core-linux-x64-musl": "^1.2.109",
|
|
57
|
+
"@swc/core-freebsd-x64": "^1.2.109",
|
|
58
|
+
"@swc/core-win32-ia32-msvc": "^1.2.109",
|
|
59
|
+
"@swc/core-linux-arm64-gnu": "^1.2.109",
|
|
60
|
+
"@swc/core-linux-arm-gnueabihf": "^1.2.109",
|
|
61
|
+
"@swc/core-darwin-arm64": "^1.2.109",
|
|
62
|
+
"@swc/core-android-arm64": "^1.2.109",
|
|
63
|
+
"@swc/core-linux-arm64-musl": "^1.2.109",
|
|
64
|
+
"@swc/core-win32-arm64-msvc": "^1.2.109"
|
|
65
65
|
},
|
|
66
66
|
"types": "./index.d.ts",
|
|
67
67
|
"scripts": {
|
|
68
|
-
"prepare": "husky install",
|
|
68
|
+
"prepare": "husky install && git config feature.manyFiles true",
|
|
69
69
|
"artifacts": "napi artifacts --dist scripts/npm",
|
|
70
70
|
"prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
|
|
71
71
|
"build": "tsc -d && napi build --platform --release --cargo-name node --cargo-flags=\"-p node\"",
|
package/types.d.ts
CHANGED
|
@@ -240,7 +240,7 @@ export interface Options extends Config {
|
|
|
240
240
|
*/
|
|
241
241
|
sourceRoot?: string;
|
|
242
242
|
plugin?: Plugin;
|
|
243
|
-
isModule?: boolean;
|
|
243
|
+
isModule?: boolean | 'unknown';
|
|
244
244
|
/**
|
|
245
245
|
* Destination path. Note that this value is used only to fix source path
|
|
246
246
|
* of source map files and swc does not write output to this path.
|