@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 CHANGED
@@ -22,9 +22,9 @@
22
22
  </a>
23
23
  </p>
24
24
 
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 entrypoint for using library will be [parser](https://rustdoc.swc.rs/swc_ecma_parser/).
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 swc from javascript, please refer to [docs on the website](https://swc.rs/docs/installation/).
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/comparison-babel).
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
- 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:
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
- swc is primarily distributed under the terms of both the MIT license
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,6 +1,7 @@
1
- Convert swc AST to Babel AST.
1
+ Convert SWC AST to Babel AST.
2
2
 
3
3
  ## Testing
4
+
4
5
  To run tests
5
6
 
6
7
  ```bash
@@ -1,13 +1,13 @@
1
1
  # swc_bundler
2
2
 
3
- Bundler for the swc project.
3
+ Bundler for the SWC project.
4
4
 
5
5
  ## Features
6
6
 
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
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`.
@@ -1,6 +1,6 @@
1
1
  # swc_css_parser
2
2
 
3
- CSS parser for [the swc project](https://swc.rs)
3
+ CSS parser for [the SWC project](https://swc.rs)
4
4
 
5
5
  # Structure
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Minifier
2
2
 
3
- EcmaScript minifier for the swc project. This is basically a port of terser.
3
+ EcmaScript minifier for the SWC project. This is basically a port of terser.
4
4
 
5
5
  # Note
6
6
 
@@ -1,3 +1,3 @@
1
1
  # swc_plugin
2
2
 
3
- Base runtime for swc plugins, written in rust.
3
+ Base runtime for SWC plugins, written in rust.
package/cspell.json CHANGED
@@ -32,7 +32,6 @@
32
32
  "corejs",
33
33
  "ctxt",
34
34
  "ctxts",
35
- "Cutomizing",
36
35
  "dedup",
37
36
  "dejavu",
38
37
  "delim",
@@ -126,7 +125,5 @@
126
125
  "unimpl",
127
126
  "untrusted"
128
127
  ],
129
- "flagWords": [
130
- "actally"
131
- ]
128
+ "flagWords": ["actally"]
132
129
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.108",
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.108",
54
- "@swc/core-darwin-x64": "^1.2.108",
55
- "@swc/core-linux-x64-gnu": "^1.2.108",
56
- "@swc/core-linux-x64-musl": "^1.2.108",
57
- "@swc/core-freebsd-x64": "^1.2.108",
58
- "@swc/core-win32-ia32-msvc": "^1.2.108",
59
- "@swc/core-linux-arm64-gnu": "^1.2.108",
60
- "@swc/core-linux-arm-gnueabihf": "^1.2.108",
61
- "@swc/core-darwin-arm64": "^1.2.108",
62
- "@swc/core-android-arm64": "^1.2.108",
63
- "@swc/core-linux-arm64-musl": "^1.2.108",
64
- "@swc/core-win32-arm64-msvc": "^1.2.108"
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.