commit_hash
stringlengths
40
40
author
stringlengths
1
57
date
timestamp[s]date
2010-07-26 04:45:09
2026-04-14 18:21:10
message
stringlengths
8
1.39M
diff
stringlengths
68
51.2k
files_changed
int64
1
136
insertions
int64
0
2.35k
deletions
int64
0
1.9k
c0432e46df1fa15d8819859211913796e59d9192
OJ Kwon
2022-05-04T04:59:30
feat(plugin): Expose `Pos` (#4516)
diff --git a/crates/swc_plugin/src/lib.rs b/crates/swc_plugin/src/lib.rs index 3d4844e14d..496cf84ff2 100644 --- a/crates/swc_plugin/src/lib.rs +++ b/crates/swc_plugin/src/lib.rs @@ -12,7 +12,7 @@ pub mod comments { } pub mod source_map { - pub use swc_common::source_map::{CharPos, Loc, MultiByteChar, NonNarrowC...
1
1
1
518f769ef0a847491e8053c79a94da9fdf983cad
Donny/κ°•λ™μœ€
2022-05-02T06:50:14
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index c6ea72ff13..49f6171f25 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.173.1" +version = "0.173.2" dependencies = [ "ahash", "ansi_term", @@ -3422,7 +3422,7 @@ dependencies = [ [[package]] name...
5
13
13
951e7b3fb9c8793fdf2a0e8675ee0df4dab2dc40
Donny/κ°•λ™μœ€
2022-04-30T09:21:26
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 90bad9aec2..af30c8d9c4 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.173.0" +version = "0.173.1" dependencies = [ "ahash", "ansi_term", @@ -3422,7 +3422,7 @@ dependencies = [ [[package]] name...
4
9
9
a444726fe3014c1a241439d8126188c0c5fe5212
Donny/κ°•λ™μœ€
2022-04-30T09:11:20
fix(es/bugfixes): Fix handling of syntax context (#4490)
diff --git a/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs b/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs index 131b09afbc..d786dea104 100644 --- a/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs +++ b/crates/swc_ecma_transforms_compat/src/bug...
5
178
49
09ba3c0e688b2bd66e707836ecba23feee93fb8c
Donny/κ°•λ™μœ€
2022-04-29T08:40:16
feat(es/minifier): Add `pristine_globals` (#4480)
diff --git a/crates/swc_ecma_minifier/src/compress/pure/misc.rs b/crates/swc_ecma_minifier/src/compress/pure/misc.rs index f2ebaf722f..00336d392c 100644 --- a/crates/swc_ecma_minifier/src/compress/pure/misc.rs +++ b/crates/swc_ecma_minifier/src/compress/pure/misc.rs @@ -806,7 +806,7 @@ impl Pure<'_> { _ =>...
4
21
8
a72f436148db1aecfbfcbf64c902f926b44e9dbf
Donny/κ°•λ™μœ€
2022-04-28T08:35:33
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index ac5c274355..f16a1ecd0e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3483,7 +3483,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.94.0" +version = "0.94.1" dependencies = [ "ahash", "arrayvec", diff --git a/crates/swc_ecma_transforms...
2
2
2
f30e7717a20348af2f6ef65bb7ff800fbffeadb4
Alexander Akait
2022-04-27T03:28:36
test(html/codegen): Improve fixture testing (#4450)
diff --git a/crates/swc_html_codegen/tests/fixture.rs b/crates/swc_html_codegen/tests/fixture.rs index 8426824bd0..c64c9b5349 100644 --- a/crates/swc_html_codegen/tests/fixture.rs +++ b/crates/swc_html_codegen/tests/fixture.rs @@ -115,13 +115,23 @@ fn run(input: &Path, minify: bool) { struct NormalizeTest; impl Vis...
1
15
5
ec7dfb92098897d9b8dbe5726bef78ea2a868053
Austaras
2022-04-27T02:21:39
chore(es/minifier): Don't run tests with infinite loops (#4448)
diff --git a/crates/swc_ecma_minifier/tests/terser_exec.rs b/crates/swc_ecma_minifier/tests/terser_exec.rs index bc34f3c124..fea2e94194 100644 --- a/crates/swc_ecma_minifier/tests/terser_exec.rs +++ b/crates/swc_ecma_minifier/tests/terser_exec.rs @@ -58,6 +58,12 @@ use testing::assert_eq; "properties/issue_318...
1
6
0
342869408bb30217880c662c5ccf885014f93fd9
Donny/κ°•λ™μœ€
2022-04-26T10:35:25
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 2c88492df0..5bf40e6001 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.172.0" +version = "0.172.1" dependencies = [ "ahash", "ansi_term", @@ -3720,7 +3720,7 @@ dependencies = [ [[package]] name...
3
5
5
2813eaadcd0703b9f8c11d77f91c70cd002c9296
overlookmotel
2022-04-26T00:09:14
fix(es/ast): Fix tag of `BigInt` (#4440)
diff --git a/crates/swc_ecma_ast/src/prop.rs b/crates/swc_ecma_ast/src/prop.rs index b5537f1e81..f53478f84f 100644 --- a/crates/swc_ecma_ast/src/prop.rs +++ b/crates/swc_ecma_ast/src/prop.rs @@ -104,7 +104,7 @@ pub enum PropName { Num(Number), #[tag("Computed")] Computed(ComputedPropName), - #[tag("Bi...
1
1
1
8048597c9ec10fb956de06e6b2de28e621262dd9
Donny/κ°•λ™μœ€
2022-04-25T15:31:59
feat(es/optimization): Accept top level mark from simplifiers (#4434)
diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml index 45e25b9e12..d5d3020fef 100644 --- a/crates/swc/Cargo.toml +++ b/crates/swc/Cargo.toml @@ -20,12 +20,6 @@ default = ["es3"] # You can disable this feature to reduce binary size. es3 = [] -concurrent = [ - "swc_ecma_utils/concurrent", - "swc_ecma_tran...
18
149
143
6a19ff1a152b67b15714c0290eb21ede878692e5
Donny/κ°•λ™μœ€
2022-04-25T14:11:22
feat(node/css): Add css bindings crate (#4346)
diff --git a/Cargo.lock b/Cargo.lock index 6845d50213..ca6489b853 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -166,12 +166,26 @@ dependencies = [ "scoped-tls", ] +[[package]] +name = "binding_commons" +version = "0.1.0" +dependencies = [ + "anyhow", + "napi", + "serde", + "serde_json", + "swc_node_base", + "tracin...
20
580
244
8ab12fd97b035e4131775676cdd33daaf31587b8
Donny/κ°•λ™μœ€
2022-04-25T06:56:19
fix(es/minifier): Preserve more side effects (#4420)
diff --git a/crates/swc_ecma_minifier/tests/terser_exec.rs b/crates/swc_ecma_minifier/tests/terser_exec.rs index 7d6db6befc..7bb1a0a604 100644 --- a/crates/swc_ecma_minifier/tests/terser_exec.rs +++ b/crates/swc_ecma_minifier/tests/terser_exec.rs @@ -36,21 +36,16 @@ use testing::assert_eq; exclude( "ie8",...
3
10
17
f787f8c81943b022078a53575486094d5d2b1eca
Donny/κ°•λ™μœ€
2022-04-24T11:40:39
test(es/minifier): Execute terser tests if possible (#4418)
diff --git a/crates/swc_ecma_minifier/tests/terser_exec.rs b/crates/swc_ecma_minifier/tests/terser_exec.rs new file mode 100644 index 0000000000..5326157538 --- /dev/null +++ b/crates/swc_ecma_minifier/tests/terser_exec.rs @@ -0,0 +1,306 @@ +extern crate swc_node_base; + +use std::{ + fmt::Debug, + fs::read_to_st...
2
309
1
971351fe93b1e4ad5fb86f24eca45d04753c62c2
Donny/κ°•λ™μœ€
2022-04-22T01:50:25
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 791be92c4a..be5435b227 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3152,7 +3152,7 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.76.0" +version = "0.76.1" dependencies = [ "arbitrary", "is-macro", diff --git a/crates/swc_ecma_ast/Cargo.toml b/cra...
2
8
8
a06c55930f64a158b289c790ac9f7f71de78838a
Satish Srinivasan
2022-04-20T14:31:06
fix(common): Ignore extraneous mapping of 1, 0 => 0, 0 (#4381)
diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs index 684770358f..7327147a5d 100644 --- a/crates/swc_common/src/source_map.rs +++ b/crates/swc_common/src/source_map.rs @@ -1169,6 +1169,12 @@ impl SourceMap { let lc = *lc; + // If pos is same as a DUMMY_...
1
6
0
8419b604300695e57cb6b1191e9daf638c65c828
OJ Kwon
2022-04-20T08:05:02
fix(plugin): Align deps to fix build (#4377)
diff --git a/crates/jsdoc/Cargo.toml b/crates/jsdoc/Cargo.toml index 5c2b6b2613..8dacff9a18 100644 --- a/crates/jsdoc/Cargo.toml +++ b/crates/jsdoc/Cargo.toml @@ -15,7 +15,7 @@ bench = false nom = "7.1.0" serde = {version = "1", features = ["derive"]} swc_atoms = {version = "0.2", path = "../swc_atoms"} -swc_common ...
50
61
61
203dde9c6b83390e65444615299829f4212eac9d
Donny/κ°•λ™μœ€
2022-04-20T07:35:11
perf(es/minifier): Fix default of `TerserCompressorOptions` (#4378)
diff --git a/crates/swc_ecma_minifier/src/option/terser.rs b/crates/swc_ecma_minifier/src/option/terser.rs index 3d8c5d984d..fb99f6e616 100644 --- a/crates/swc_ecma_minifier/src/option/terser.rs +++ b/crates/swc_ecma_minifier/src/option/terser.rs @@ -246,63 +246,7 @@ pub struct TerserCompressorOptions { impl Default...
1
1
57
15efe48784406c5b599a83b53034e3552f9951a8
Donny/κ°•λ™μœ€
2022-04-20T04:18:26
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 65f4bb5764..4bb4025742 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2838,7 +2838,7 @@ dependencies = [ [[package]] name = "swc" -version = "0.168.3" +version = "0.169.0" dependencies = [ "ahash", "ansi_term", @@ -2958,7 +2958,7 @@ dependencies = [ [[package]] name...
8
22
22
5d179bfd7d41731a2322854c7aafc93b008eb5f8
Donny/κ°•λ™μœ€
2022-04-19T18:12:04
chore(es/minifier): Setup correct benchmark (#4372)
diff --git a/Cargo.lock b/Cargo.lock index ce770288a5..66f994f8ab 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2883,6 +2883,7 @@ dependencies = [ "swc_node_comments", "swc_plugin_proxy", "swc_plugin_runner", + "swc_timer", "swc_visit", "testing", "tracing", diff --git a/crates/swc/Cargo.toml b/crates/swc/Ca...
7
123
44
c4f01c6d6000890f5d3e0bb2e0e9531cff9c8c6b
RiESAEX
2022-04-19T17:12:28
feat(cli): Support configuring output file extension (#4343)
diff --git a/crates/swc_cli/src/commands/compile.rs b/crates/swc_cli/src/commands/compile.rs index 1c61e5bb99..26a68b4af2 100644 --- a/crates/swc_cli/src/commands/compile.rs +++ b/crates/swc_cli/src/commands/compile.rs @@ -84,6 +84,10 @@ pub struct CompileOptions { #[clap(group = "input")] files: Vec<PathBuf>...
1
20
5
6300b9cdb19150686bc71c08386e11d7899a0764
Donny/κ°•λ™μœ€
2022-04-19T14:41:26
perf(es/minifier): Make `base54` use stack-allocated vector (#4371)
diff --git a/Cargo.lock b/Cargo.lock index 45d9ddc8c6..bf0b1a2ec0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3272,6 +3272,7 @@ dependencies = [ "ahash", "ansi_term", "anyhow", + "arrayvec", "backtrace", "criterion", "indexmap", diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Ca...
3
8
3
128175c3297e036ad38e8faa68aa149a94f5ee29
Donny/κ°•λ™μœ€
2022-04-19T07:31:48
fix(es/minifier): Fix default values of `toplevel` (#4366)
diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs index dd3c965f4d..48d3a9513f 100644 --- a/crates/swc/src/builder.rs +++ b/crates/swc/src/builder.rs @@ -12,7 +12,7 @@ use swc_common::{ FileName, Mark, SourceMap, }; use swc_ecma_ast::{EsVersion, Module}; -use swc_ecma_minifier::option::MinifyOpt...
4
38
11
f06c862a9ff2c6510c3b88b4d5bd4807a11b5bfb
OJ Kwon
2022-04-19T05:25:44
feat(plugin): Support `lookup_char_pos` of `SourceMap` (#4364)
diff --git a/Cargo.lock b/Cargo.lock index 4fc0fe8cc9..1c522f0107 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2367,9 +2367,9 @@ checksum = "11000e6ba5020e53e7cc26f73b91ae7d5496b4977851479edb66b694c0675c21" [[package]] name = "rkyv" -version = "0.7.36" +version = "0.7.37" source = "registry+https://github.com/rust...
25
397
149
83094400080bef161b4b106aa3840efc7f2dfecd
Donny/κ°•λ™μœ€
2022-04-17T18:36:15
chore(es): Rename benchmarks (#4355)
diff --git a/crates/swc/benches/bugs.rs b/crates/swc/benches/bugs.rs index e6d5396964..db7effc86d 100644 --- a/crates/swc/benches/bugs.rs +++ b/crates/swc/benches/bugs.rs @@ -40,7 +40,7 @@ fn bugs_1(b: &mut Bencher) { } fn bench_bugs(c: &mut Criterion) { - c.bench_function("bugs_1", bugs_1); + c.bench_functio...
15
114
86
42e15aedc2b7c0ccdd9d6db58cc425a1e781cdd8
Donny/κ°•λ™μœ€
2022-04-17T14:22:38
perf(es/minifier): Split frequently used functions (#4352)
diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs index a522178b3d..f3003bd1ae 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope....
4
30
17
b8d9a58f13d64cc1f358aabaec3eae666119e885
Donny/κ°•λ™μœ€
2022-04-15T12:39:29
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index c54df502ca..7385570347 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2994,7 +2994,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.104.1" +version = "0.104.2" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -3006,7 +3006,7 @@ dependencies = [ [...
3
5
5
7599fe74317f790cce8f8638e84c320c5ebbc4c2
Donny/κ°•λ™μœ€
2022-04-15T07:31:41
fix(es/parser): Enable static blocks by default (#4334)
diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs index 0e21ac5f3f..dd3c965f4d 100644 --- a/crates/swc/src/builder.rs +++ b/crates/swc/src/builder.rs @@ -280,7 +280,7 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> { should_enable(self.target, EsVersion::Es2015) ...
16
28
67
37aec5b19965bedbe67fa1b454be6a7017ccedec
Pig Fang
2022-04-14T00:50:54
refactor(es/parser): Simplify logic (#4329)
diff --git a/crates/swc_ecma_parser/src/parser/typescript.rs b/crates/swc_ecma_parser/src/parser/typescript.rs index 372f49c73a..d7cd6383a1 100644 --- a/crates/swc_ecma_parser/src/parser/typescript.rs +++ b/crates/swc_ecma_parser/src/parser/typescript.rs @@ -909,7 +909,13 @@ impl<I: Tokens> Parser<I> { } ...
1
7
9
cf7ca5076a7f0b33f3587fb34f2eddcb2d316e5d
OJ Kwon
2022-04-09T07:47:43
refactor(plugin/api): Expand the proxy crate (#4290)
diff --git a/Cargo.lock b/Cargo.lock index bfcc96377e..07780bb166 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2857,7 +2857,7 @@ dependencies = [ "swc_error_reporters", "swc_node_base", "swc_node_comments", - "swc_plugin_comments", + "swc_plugin_proxy", "swc_plugin_runner", "swc_visit", "testing", @@ -3855,...
15
40
28
6fe4ee79be584c0fda0b0a452d10c7382b2706c1
Donny/κ°•λ™μœ€
2022-04-09T07:18:24
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index f819ada195..bfcc96377e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2959,7 +2959,7 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.17.20" +version = "0.17.21" dependencies = [ "ahash", "anyhow", @@ -3847,7 +3847,7 @@ dependencies = [ [[package]] ...
4
6
6
281db2cc4f9af29577095038b37af5855a1e5aa5
OJ Kwon
2022-04-09T07:12:14
feat(plugin): Make more types serializable (#4289)
diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs index 85ce76d652..660bebf49c 100644 --- a/crates/swc_common/src/syntax_pos.rs +++ b/crates/swc_common/src/syntax_pos.rs @@ -102,11 +102,14 @@ better_scoped_tls::scoped_tls!( pub static GLOBALS: Globals ); -/// Differentiates ...
4
168
4
4868c73d5bc5eb3ffbbc2fd31c485e3e22795550
Donny/κ°•λ™μœ€
2022-04-08T18:08:31
fix(es/optimization): Don't create invalid sequence expressions (#4285)
diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/branch/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/branch/mod.rs index aaa6c94843..73d0a7187f 100644 --- a/crates/swc_ecma_transforms_optimization/src/simplify/branch/mod.rs +++ b/crates/swc_ecma_transforms_optimization/src/simplify/bra...
2
42
1
3c4e5204ecb51dd67c73ae5556c886b303891a23
OJ Kwon
2022-04-08T08:32:05
feat(plugin): Implement `Copy` and `Clone` for the comment proxy (#4280)
diff --git a/crates/swc_plugin_comments/src/plugin_comments_proxy.rs b/crates/swc_plugin_comments/src/plugin_comments_proxy.rs index 3a9fa2fcca..b9f18db040 100644 --- a/crates/swc_plugin_comments/src/plugin_comments_proxy.rs +++ b/crates/swc_plugin_comments/src/plugin_comments_proxy.rs @@ -37,7 +37,7 @@ pub struct Comm...
1
1
1
fc3a2d0cf9a4767076dda3fac929b24a50144730
OJ Kwon
2022-04-08T08:03:03
feat(plugin/runner): Allow fs access from wasi plugin (#4279)
diff --git a/crates/swc_plugin_runner/src/load_plugin.rs b/crates/swc_plugin_runner/src/load_plugin.rs index 2fc520ad1f..b7b3cedd10 100644 --- a/crates/swc_plugin_runner/src/load_plugin.rs +++ b/crates/swc_plugin_runner/src/load_plugin.rs @@ -1,4 +1,4 @@ -use std::sync::Arc; +use std::{env, sync::Arc}; use anyhow::{...
1
19
3
fad652f879d12a1015b4500f0a512232c9433c2d
OJ Kwon
2022-04-07T07:21:37
chore(plugin): Align version of `swc_common` to include dummy comment api (#4270)
diff --git a/Cargo.lock b/Cargo.lock index cf73fe9781..e3a59153b8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2959,7 +2959,7 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.17.19" +version = "0.17.20" dependencies = [ "ahash", "anyhow", diff --git a/crates/jsdoc/Cargo.toml b/crates/jsdoc/Car...
52
55
55
b15e984317ae6eb03597e9236f637fee205dd8a5
OJ Kwon
2022-04-07T05:37:12
feat(plugin): Implement proxy for `dummy_with_cmt` (#4268)
diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs index aeee8bf06e..85ce76d652 100644 --- a/crates/swc_common/src/syntax_pos.rs +++ b/crates/swc_common/src/syntax_pos.rs @@ -6,7 +6,7 @@ use std::{ hash::{Hash, Hasher}, ops::{Add, Sub}, path::PathBuf, - sync::atomic...
3
36
4
8706c17c4f20fb508e685cb81945cd51672eaba5
OJ Kwon
2022-04-07T04:07:10
refactor(plugin): Consolidate exported namespaces (#4263)
diff --git a/Cargo.lock b/Cargo.lock index 43db22d384..fa9a3951df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3791,7 +3791,7 @@ dependencies = [ [[package]] name = "swc_macros_common" -version = "0.3.3" +version = "0.3.4" dependencies = [ "pmutil", "proc-macro2", diff --git a/crates/ast_node/Cargo.toml b/crat...
12
12
15
7bc04a67918374b1b2d02ed5034330cd6dd78d57
Victor Sumner
2022-04-06T04:43:32
feat(plugin/api): Expose `swc_ecma_utils` (#4256)
diff --git a/Cargo.lock b/Cargo.lock index 70dde41f13..0e8aa1dfdb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3852,6 +3852,7 @@ dependencies = [ "swc_common", "swc_ecma_ast", "swc_ecma_quote", + "swc_ecma_utils", "swc_ecma_visit", "swc_plugin_comments", "swc_plugin_macro", diff --git a/crates/swc_plugin/Ca...
3
6
0
990b320394ac209cac51490c0bdc805da227e3fa
Donny/κ°•λ™μœ€
2022-04-05T05:44:51
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index a27c5a3b34..f9a71fdc3f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3846,7 +3846,7 @@ dependencies = [ [[package]] name = "swc_plugin" -version = "0.43.0" +version = "0.43.1" dependencies = [ "swc_atoms", "swc_common", diff --git a/crates/swc_plugin/Cargo.toml b/crate...
2
12
12
4093814895a4c473d13852d2edeee17d06d7421f
OJ Kwon
2022-04-05T05:28:07
chore(build): Dedup `swc_common` (#4247)
diff --git a/Cargo.lock b/Cargo.lock index 68b03ee4a7..a27c5a3b34 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3859,7 +3859,7 @@ dependencies = [ [[package]] name = "swc_plugin_comments" -version = "0.1.0" +version = "0.1.1" dependencies = [ "better_scoped_tls", "rkyv", diff --git a/crates/jsdoc/Cargo.toml b/c...
50
57
57
8008b79f8c69f9abc1cdd7be299f5580be8c3c0f
Xiaotao
2022-04-04T04:36:47
feat(es): Support jsonc for `.swcrc` (#4236)
diff --git a/Cargo.lock b/Cargo.lock index f96a1ce2a6..881cf06821 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1211,6 +1211,12 @@ version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "078e285eafdfb6c4b434e0d31e8cfcb5115b651496faca5749b88fafd4f23bfd" +[[package]] +name = "js...
3
13
2
b1645f606d1334eadb7ebf912c847bb5bdff6b96
Austaras
2022-04-04T03:23:15
fix(es/optimizer/simplifier): Collect idents in init first (#4239)
diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/inlining/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/inlining/mod.rs index e09a24bca2..00454d1d53 100644 --- a/crates/swc_ecma_transforms_optimization/src/simplify/inlining/mod.rs +++ b/crates/swc_ecma_transforms_optimization/src/simpli...
2
27
3
6ea66cf001754bb88604a824a2290a3360a798b8
OJ Kwon
2022-04-03T06:22:36
feat(plugin): Implement plugin api for comments (#4229)
diff --git a/crates/swc_common/src/plugin.rs b/crates/swc_common/src/plugin.rs index f7d20a2772..c689847e1d 100644 --- a/crates/swc_common/src/plugin.rs +++ b/crates/swc_common/src/plugin.rs @@ -57,6 +57,15 @@ impl Serialized { Serialized { field: vec } } + /// Not an actual trait Into impl: simple w...
10
655
162
def2826029fcc405ac73283b3559415105266ad2
Alexander Akait
2022-04-02T05:35:05
feat(css/ast): Derive more traits (#4220)
diff --git a/crates/swc_css_ast/src/at_rule.rs b/crates/swc_css_ast/src/at_rule.rs index 10855a98e0..928394e3c8 100644 --- a/crates/swc_css_ast/src/at_rule.rs +++ b/crates/swc_css_ast/src/at_rule.rs @@ -1,3 +1,4 @@ +use is_macro::Is; use string_enum::StringEnum; use swc_common::{ast_node, EqIgnoreSpan, Span}; @@ -7...
5
325
25
69cb512e571de1f8b245fdc538cf9a09c51823f2
Victor Sumner
2022-04-02T05:31:57
fix(cli): Update plugin template (#4222)
diff --git a/crates/swc_cli/src/commands/plugin.rs b/crates/swc_cli/src/commands/plugin.rs index b74a97b868..d200ebc110 100644 --- a/crates/swc_cli/src/commands/plugin.rs +++ b/crates/swc_cli/src/commands/plugin.rs @@ -213,7 +213,7 @@ prepublish = "build --target {}""#, create_dir_all(&src_path)?; fs:...
1
2
2
ac2357ebd9db876c9c5e753637d608ecceb179c5
Donny/κ°•λ™μœ€
2022-04-01T16:59:34
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index fb4ea17164..379057fa59 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3114,7 +3114,7 @@ dependencies = [ [[package]] name = "swc_ecma_ast" -version = "0.73.0" +version = "0.73.1" dependencies = [ "arbitrary", "is-macro", diff --git a/crates/swc_ecma_ast/Cargo.toml b/cra...
2
2
2
164556290b03cd530ad5158947cd28310c18fb12
Donny/κ°•λ™μœ€
2022-04-01T06:20:29
perf(es/parser): Improve performance by using `#[cold]` (#4215)
diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs index 0a9799e898..6e7697b2e0 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope....
9
73
101
60c9ddf5fd0a48c7a6b8ca49c780cc17a5d5b729
Donny/κ°•λ™μœ€
2022-03-31T14:08:24
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 567183625d..032659a3a8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3759,7 +3759,7 @@ dependencies = [ [[package]] name = "swc_plugin" -version = "0.40.0" +version = "0.41.0" dependencies = [ "swc_atoms", "swc_common", @@ -3781,7 +3781,7 @@ dependencies = [ [[packa...
3
5
5
61366c85b3faee94e584a9cfe76dc9b598eedfb9
Donny/κ°•λ™μœ€
2022-03-31T14:06:10
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index e02b4af428..567183625d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2951,7 +2951,7 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.17.18" +version = "0.17.19" dependencies = [ "ahash", "anyhow", diff --git a/crates/swc_common/Cargo.toml b/crates/swc_...
2
2
2
eecda21d9a36fc2c4b98c2cae4933adb300cdaa0
OJ Kwon
2022-03-31T07:11:31
fix(node-swc): Initialize custom trace subscriber only once (#4209)
diff --git a/Cargo.lock b/Cargo.lock index b73363f33c..2b79931b86 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4166,8 +4166,9 @@ dependencies = [ [[package]] name = "tracing-chrome" -version = "0.4.0" -source = "git+https://github.com/kwonoj/tracing-chrome?rev=a345d8e#a345d8e8b0db52911711d01c9d44b1bdb7be2901" +vers...
5
32
23
1ad357cb32147ea95ccce534076b87ea5ae76ebd
Donny/κ°•λ™μœ€
2022-03-30T22:50:11
feat(common/preset-env): Dedup `arrayvec` (#4201)
diff --git a/Cargo.lock b/Cargo.lock index bd9ae08c12..88d817482e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -79,12 +79,6 @@ version = "0.3.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a4c527152e37cf757a3f78aae5a06fbeefdb07ccc535c980a3208ee3060dd544" -[[package]] -name = "arrayve...
1
7
13
3426dda4f7d662c758d7cb9a15527029f369779f
Austaras
2022-03-30T12:04:27
fix(es/compat): Handle `new.target` in getter/setter properties (#4194)
diff --git a/crates/swc_ecma_transforms_compat/src/es2015/new_target.rs b/crates/swc_ecma_transforms_compat/src/es2015/new_target.rs index 2c8b188787..9ddf821190 100644 --- a/crates/swc_ecma_transforms_compat/src/es2015/new_target.rs +++ b/crates/swc_ecma_transforms_compat/src/es2015/new_target.rs @@ -26,6 +26,18 @@ st...
2
48
11
8ca4e674515b77341f77f180235fcfb396dac26d
OJ Kwon
2022-03-29T06:17:40
refactor(cli): Alias plugin build with wasm target (#4181)
diff --git a/crates/swc_cli/src/commands/plugin.rs b/crates/swc_cli/src/commands/plugin.rs index f6e9fb692d..b74a97b868 100644 --- a/crates/swc_cli/src/commands/plugin.rs +++ b/crates/swc_cli/src/commands/plugin.rs @@ -173,8 +173,10 @@ swc_plugin = "*""#, fs::write( &cargo_config_path.join("config...
1
4
2
2a9cb2d12ac0957c0d1ae0f64d2b2f8dc72de12a
Artur
2022-03-28T08:20:46
refactor(es/lints): Use util for parens (#4167)
diff --git a/crates/swc_ecma_lints/src/rules/prefer_regex_literals.rs b/crates/swc_ecma_lints/src/rules/prefer_regex_literals.rs index 7807572215..6a9de0c69d 100644 --- a/crates/swc_ecma_lints/src/rules/prefer_regex_literals.rs +++ b/crates/swc_ecma_lints/src/rules/prefer_regex_literals.rs @@ -7,7 +7,7 @@ use swc_ecma_...
4
16
31
b473414b3cbc5b66ae362f0ad670430be5a7d451
OJ Kwon
2022-03-28T06:49:30
chore(deps): Update `string-cache` (#4169)
diff --git a/Cargo.lock b/Cargo.lock index 1a1f3c5cff..a38fd06bb3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -34,7 +34,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "fcb51a0695d8f838b1ee009b3fbf66bda078cd64590202a864a8f3e8c4315c47" dependencies = [ "const-random", - "getrandom 0....
3
41
178
32c2de1181c96c873ccb66ac2917fa22409afd11
Donny/κ°•λ™μœ€
2022-03-25T12:15:57
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index aca1454b0f..31e16555a2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3609,7 +3609,7 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.108.0" +version = "0.108.1" dependencies = [ "ahash", "dashmap", @@ -3756,7 +3756,7 @@ dependenci...
4
6
6
5de31416be579a4257789d0ad927db15eec9a73c
Donny/κ°•λ™μœ€
2022-03-25T11:16:06
feat(es/plugin): Make `quote` optional (#4160)
diff --git a/crates/swc_plugin/Cargo.toml b/crates/swc_plugin/Cargo.toml index 5295b565f1..1635c61b1f 100644 --- a/crates/swc_plugin/Cargo.toml +++ b/crates/swc_plugin/Cargo.toml @@ -8,14 +8,21 @@ name = "swc_plugin" repository = "https://github.com/swc-project/swc.git" version = "0.37.0" +[package.metadata.docs.rs...
2
13
2
161353cf25c32777cc8fff971b978b1424235cda
OJ Kwon
2022-03-25T07:05:26
feat(plugin/runner): Implement initial loading for wasm32 (#4151)
diff --git a/Cargo.lock b/Cargo.lock index 2198c682c4..6b83f39024 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1225,9 +1225,9 @@ checksum = "1aab8fc367588b89dcee83ab0fd66b72b50b72fa1904d7095045ace2b0c81c35" [[package]] name = "js-sys" -version = "0.3.55" +version = "0.3.56" source = "registry+https://github.com/ru...
9
138
92
7a1dcb1b933308fe237f992ff38650c15875c4c5
RiESAEX
2022-03-25T05:06:15
fix(es): Make `ErrorConfig.filename` default to true (#4150)
diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs index dc724ada2e..9a524d68b5 100644 --- a/crates/swc/src/config/mod.rs +++ b/crates/swc/src/config/mod.rs @@ -1291,12 +1291,16 @@ fn default_jsonify_min_cost() -> usize { 1024 } -#[derive(Debug, Default, Clone, Copy, Serialize, Deserialize...
2
7
2
7a06c5b3d888418098dfe55d030645087e11b5e8
Artur
2022-03-24T17:07:18
feat(es/lints): Remove source map accesses (#4147)
diff --git a/crates/swc_ecma_lints/src/rules/mod.rs b/crates/swc_ecma_lints/src/rules/mod.rs index 063a6a9bb3..5573d2d7ea 100644 --- a/crates/swc_ecma_lints/src/rules/mod.rs +++ b/crates/swc_ecma_lints/src/rules/mod.rs @@ -89,7 +89,6 @@ pub fn all(lint_params: LintParams) -> Vec<Box<dyn Rule>> { rules.extend...
4
10
91
a6f39d3bd6e7bc57203e1cf4f2cadc12e4396e9f
OJ Kwon
2022-03-23T08:22:27
feat(cli): Implements some compile flags (#4125)
diff --git a/Cargo.lock b/Cargo.lock index 16156fc499..415bbafe85 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3073,6 +3073,7 @@ dependencies = [ "anyhow", "atty", "clap 3.1.0", + "glob", "path-absolutize", "rayon", "relative-path", diff --git a/crates/swc_cli/Cargo.toml b/crates/swc_cli/Cargo.toml index 76...
3
63
47
f41a717c457d7ca3e9b5cd6a24ce0fa48040b6f4
OJ Kwon
2022-03-22T05:14:20
chore(plugin/runner): Update `wasmer-*` (#4111)
diff --git a/Cargo.lock b/Cargo.lock index 454b55f6db..7c4960ebde 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4587,9 +4587,9 @@ checksum = "0237232789cf037d5480773fe568aac745bfe2afbc11a863e97901780a6b47cc" [[package]] name = "wasmer" -version = "2.2.0" +version = "2.2.1" source = "registry+https://github.com/rust...
6
41
41
9b64a6960fc413d5aac000d0868d836d881ca895
Donny/κ°•λ™μœ€
2022-03-20T07:53:53
fix(es/codegen): Emit decorators on class methods (#4103)
diff --git a/Cargo.lock b/Cargo.lock index ed2d3d98b8..8a446ed87c 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3039,6 +3039,7 @@ dependencies = [ "swc_ecma_parser", "swc_ecma_transforms_base", "swc_ecma_transforms_optimization", + "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transfor...
4
27
10
3f78053227f2d286940e9b118f27aa9474b0c838
Donny/κ°•λ™μœ€
2022-03-19T14:17:48
chore: Typo
diff --git a/crates/node/Cargo.toml b/crates/node/Cargo.toml index 0ada214350..7c62498a3d 100644 --- a/crates/node/Cargo.toml +++ b/crates/node/Cargo.toml @@ -51,7 +51,7 @@ swc_ecma_loader = { path = "../swc_ecma_loader" } swc_ecma_parser = { path = "../swc_ecma_parser" } swc_node_base = { path = "../swc_node_base" }...
1
1
1
f5b9600b2befe0053bec2d3e6210bf35dd824dfb
Austaras
2022-03-19T14:11:54
fix(es/compat): Visit non-method properties in a nested object literal (#4094)
diff --git a/crates/swc_ecma_preset_env/src/lib.rs b/crates/swc_ecma_preset_env/src/lib.rs index 1495e4e548..ebceac3301 100644 --- a/crates/swc_ecma_preset_env/src/lib.rs +++ b/crates/swc_ecma_preset_env/src/lib.rs @@ -193,6 +193,7 @@ where es2015::spread(es2015::spread::Config { loose }), true )...
3
51
3
544a3416ee28c26ee7ae77ac53329ca149da32e0
Donny/κ°•λ™μœ€
2022-03-19T12:23:38
chore: Publish `v1.2.159` with fix
diff --git a/crates/node/Cargo.toml b/crates/node/Cargo.toml index 426e8d3acb..0ada214350 100644 --- a/crates/node/Cargo.toml +++ b/crates/node/Cargo.toml @@ -13,43 +13,48 @@ crate-type = ["cdylib"] [features] default = ["swc_v1", "plugin"] -plugin = ["swc/plugin", "swc_plugin_runner/default", "wasmer/default", "wa...
1
30
25
b716210de1495d11f45f74bdc3941826a9dd5d6a
Donny/κ°•λ™μœ€
2022-03-19T06:40:59
fix(common): Fix handling of input source maps (#4086)
diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs index 249d7b8a73..8c837fd346 100644 --- a/crates/swc_common/src/source_map.rs +++ b/crates/swc_common/src/source_map.rs @@ -1145,11 +1145,10 @@ impl SourceMap { if let Some(orig) = orig { for src in orig.sourc...
1
4
5
4af5e6d77bff7bf6bf247b18185b22754c3ceceb
Donny/κ°•λ™μœ€
2022-03-18T11:07:01
fix(css/prefixer): Reduce the number of vars in debug build (#4078)
diff --git a/crates/swc_stylis/src/prefixer.rs b/crates/swc_stylis/src/prefixer.rs index 137b82254c..6c6a52f2d9 100644 --- a/crates/swc_stylis/src/prefixer.rs +++ b/crates/swc_stylis/src/prefixer.rs @@ -1,5 +1,6 @@ use std::mem::take; +use swc_atoms::JsWord; use swc_common::DUMMY_SP; use swc_css_ast::*; use swc_c...
1
38
27
ffcb6ce523fb4ffba8531d5194f69e62c63d3d9a
Donny/κ°•λ™μœ€
2022-03-17T06:56:26
fix(es/parser): Allow nested ambient context in `.d.ts` files (#4060)
diff --git a/crates/swc_ecma_parser/src/parser/typescript.rs b/crates/swc_ecma_parser/src/parser/typescript.rs index 24621de5f9..7c9d49e23a 100644 --- a/crates/swc_ecma_parser/src/parser/typescript.rs +++ b/crates/swc_ecma_parser/src/parser/typescript.rs @@ -2244,7 +2244,12 @@ impl<I: Tokens> Parser<I> { r...
1
6
1
da1fd033b846696dec555d2e7cfb2b62b0f4d7eb
Donny/κ°•λ™μœ€
2022-03-16T08:30:28
chore: Fix CI
diff --git a/crates/node/Cargo.toml b/crates/node/Cargo.toml index 4838cf6a9c..4edf49b859 100644 --- a/crates/node/Cargo.toml +++ b/crates/node/Cargo.toml @@ -39,9 +39,9 @@ swc_ecma_loader = {path = "../swc_ecma_loader"} swc_ecma_parser = {path = "../swc_ecma_parser"} swc_node_base = {path = "../swc_node_base"} swc_...
1
4
4
bba5a33415b6420c9e7b85f50da4df6c11ac9e6d
Donny/κ°•λ™μœ€
2022-03-15T15:07:56
fix(node-swc): Disable logging of `warn` level by default (#4033)
diff --git a/crates/node/src/util.rs b/crates/node/src/util.rs index 7d4a76d871..2ce5f3d078 100644 --- a/crates/node/src/util.rs +++ b/crates/node/src/util.rs @@ -49,7 +49,7 @@ pub fn init_default_trace_subscriber() { .with_target(false) .with_ansi(true) .with_env_filter(EnvFilter::from_env("...
1
1
1
0c76696ed2d8cbf00a18fd9506b8c09f1be9cdd3
Austaras
2022-03-15T12:21:17
fix(es/decorator): Insert initializer to constructor with body (#4028)
diff --git a/crates/swc_ecma_transforms/tests/decorators.rs b/crates/swc_ecma_transforms/tests/decorators.rs index 7ffe2454c8..433678e866 100644 --- a/crates/swc_ecma_transforms/tests/decorators.rs +++ b/crates/swc_ecma_transforms/tests/decorators.rs @@ -6061,6 +6061,43 @@ test!( }), _class);" ); +test!( + ts(...
2
52
33
25e5ccc548260823c9ad78b607617440e04950d3
Lennart
2022-03-15T10:58:29
fix(es/parser): Allow building with stable `rustc` (#4024)
diff --git a/crates/swc_ecma_parser/src/lexer/number.rs b/crates/swc_ecma_parser/src/lexer/number.rs index abcd39b220..f0d4f0be63 100644 --- a/crates/swc_ecma_parser/src/lexer/number.rs +++ b/crates/swc_ecma_parser/src/lexer/number.rs @@ -221,7 +221,7 @@ impl<'a, I: Input> Lexer<'a, I> { let mut read_any = f...
1
5
5
73c91d34d5c6fcd869e99db02b0cf82f8e159224
Donny/κ°•λ™μœ€
2022-03-15T09:43:57
fix(es/helpers): Inject helpers for scripts (#4025) **Description:** This PR adds support for helpers in script mode. For now, we does not support `externalHelpers` for scripts, as there is no standard for importing other files from a script. **Related issue:** - Closes https://github.com/swc-project/swc/iss...
diff --git a/crates/swc_ecma_transforms_base/src/helpers/mod.rs b/crates/swc_ecma_transforms_base/src/helpers/mod.rs index 7761d446c0..bb1e0ad630 100644 --- a/crates/swc_ecma_transforms_base/src/helpers/mod.rs +++ b/crates/swc_ecma_transforms_base/src/helpers/mod.rs @@ -45,16 +45,10 @@ macro_rules! add_to { ...
1
29
13
3173047f589128c429d02b7cb128d80f0fd6e011
Donny/κ°•λ™μœ€
2022-03-15T08:42:50
refactor(es/minifier): Cleanup (#4020) **Description:** - `Optimizer.data`: `Option<ProgramData>` => `ProgramData`. - `Optimizer.done`: Remvoed. - `Optimzer.done_ctxt`: Removed. - `Pure`: Add `data: Option<&'a ProgramData>`.
diff --git a/crates/swc_ecma_minifier/src/compress/mod.rs b/crates/swc_ecma_minifier/src/compress/mod.rs index efc11e24de..30ba0ec832 100644 --- a/crates/swc_ecma_minifier/src/compress/mod.rs +++ b/crates/swc_ecma_minifier/src/compress/mod.rs @@ -325,6 +325,7 @@ where let mut visitor = pure_optimizer( ...
18
105
227
629709e1b14bb6c5a6b9963fec234fb9c6911786
OJ Kwon
2022-03-15T08:13:15
feat(cli/compile): Support `out-file` (#4016)
diff --git a/crates/swc_cli/src/commands/compile.rs b/crates/swc_cli/src/commands/compile.rs index b2f4ad6481..452a73b941 100644 --- a/crates/swc_cli/src/commands/compile.rs +++ b/crates/swc_cli/src/commands/compile.rs @@ -1,6 +1,6 @@ use std::{ - fs, - io::{self, BufRead}, + fs::{self, File}, + io::{self,...
1
109
77
ae2f8d6327b510dbdb8a5208c6f94043364844d2
Donny/κ°•λ™μœ€
2022-03-14T06:39:23
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index e442672962..612aeaa824 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3086,7 +3086,7 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.17.15" +version = "0.17.16" dependencies = [ "ahash", "anyhow", diff --git a/crates/swc_common/Cargo.toml b/crates/swc_...
2
2
2
560c81b120043b1edc20702a3ccfe3d3336c489a
OJ Kwon
2022-03-13T08:17:55
build(cargo): Set workspace default members (#3978)
diff --git a/Cargo.toml b/Cargo.toml index 506f3f3205..cef3e7e1b3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -19,6 +19,24 @@ members = [ "crates/wasm", ] +default-members = [ + "crates/jsdoc", + "crates/swc_cli", + "crates/swc_css", + "crates/swc_css_lints", + "crates/swc_ecmascript", + "crates/swc_ecma_li...
1
18
0
f7b212bfc4fe9cdc89b77b5639be52a586c220e0
Donny/κ°•λ™μœ€
2022-03-13T02:57:47
perf(es/minifier): Use `Vec<u8>` as a buffer for `base54` (#3993) Description: We are only using ASCII characters so we can avoid utf8 logics by using `Vec<u8>` as a buffer and converting it into `String` at the end.
diff --git a/crates/swc_ecma_minifier/src/util/base54.rs b/crates/swc_ecma_minifier/src/util/base54.rs index 24be8e5f08..0b8b011e7d 100644 --- a/crates/swc_ecma_minifier/src/util/base54.rs +++ b/crates/swc_ecma_minifier/src/util/base54.rs @@ -24,21 +24,24 @@ pub(crate) fn encode(init: &mut usize, skip_reserved: bool) -...
1
7
4
1beecceead16765abd1b698d3a255e647a2adcc7
Donny/κ°•λ™μœ€
2022-03-12T11:06:59
perf(es/minifier): Merge hashmap for scoping before checking (#3988) Currently, we check for child scopes by doing a recursive call, like https://github.com/swc-project/swc/blob/2ad0d801a2a9d84ae2c6df2d15ff8a215f296eec/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/scope.rs#L112-L114 But this is slow becau...
diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/mod.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/mod.rs index 1e1ecb6937..89e255e781 100644 --- a/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/mod.rs +++ b/crates/swc_ecma_minifier/src/pass/mangle_names/analyzer/mod.rs @@ -2...
2
16
4
db602911647360e0a26139d93882c353ba4d9330
Donny/κ°•λ™μœ€
2022-03-12T07:15:12
perf(common): Use `fxhash` everywhere (#3985) Description: - To avoid a breaking change, I created a cargo feature that can be used to change hasher. - This leads to about 8% perf improvements on m1 max macbook pro 64gb
diff --git a/Cargo.lock b/Cargo.lock index 5b6a2c0892..a01e13f897 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3752,6 +3752,7 @@ version = "0.5.1" dependencies = [ "fastmem", "mimalloc-rust", + "swc_common", ] [[package]] diff --git a/crates/swc_common/Cargo.toml b/crates/swc_common/Cargo.toml index e061e72dff...
5
33
3
67e615421f85aee2919016a5d01e4ebb1b9b08c4
Donny/κ°•λ™μœ€
2022-03-12T06:45:35
perf(es/minifier): Use fxhash for integers (#3984) Description: - `Id` is treated as integer, as `JsWord` and `SyntaxContext` are both integer.
diff --git a/Cargo.lock b/Cargo.lock index 70833d075b..0e104d0e5b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3283,6 +3283,7 @@ dependencies = [ "rayon", "regex", "retain_mut", + "rustc-hash", "serde", "serde_json", "swc_atoms", diff --git a/crates/swc_ecma_minifier/Cargo.toml b/crates/swc_ecma_minifier/Ca...
6
15
14
858372ffada23f0f36c1161d2ec36b6da93d973c
Donny/κ°•λ™μœ€
2022-03-11T15:36:02
fix(es/preset-env): Publish `builtin.json` (#3973)
diff --git a/crates/swc_ecma_preset_env/Cargo.toml b/crates/swc_ecma_preset_env/Cargo.toml index f7e927dcb3..e2530f8f71 100644 --- a/crates/swc_ecma_preset_env/Cargo.toml +++ b/crates/swc_ecma_preset_env/Cargo.toml @@ -3,7 +3,7 @@ authors = ["κ°•λ™μœ€ <kdy1997.dev@gmail.com>"] description = "preset-env for the swc" docume...
1
1
1
48cdc131830f05ae7f13d91a092dc7a4b3e8c6a6
SWC Bot
2022-03-11T08:48:41
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index 60c7f7268c..e4c75be296 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2840,7 +2840,7 @@ dependencies = [ [[package]] name = "swc_common" -version = "0.17.13" +version = "0.17.14" dependencies = [ "ahash", "anyhow", diff --git a/crates/swc_common/Cargo.toml b/crates/swc_...
2
2
2
d62ef6498dbc169b83f97ff224437d9a70ceddf6
SWC Bot
2022-03-11T03:52:17
chore: Publish crates
diff --git a/Cargo.lock b/Cargo.lock index ec7d955c46..0a693f17fd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2873,7 +2873,7 @@ dependencies = [ [[package]] name = "swc_css" -version = "0.98.0" +version = "0.98.1" dependencies = [ "swc_css_ast", "swc_css_codegen", @@ -2969,7 +2969,7 @@ dependencies = [ [[p...
3
5
5
ca071fb705210ec33698dbce81069156de4fcf7a
OJ Kwon
2022-03-10T16:59:51
fix(es): Adjust tracing span level (#3911)
diff --git a/crates/node/src/lib.rs b/crates/node/src/lib.rs index c38a37a28f..cba20cd8b8 100644 --- a/crates/node/src/lib.rs +++ b/crates/node/src/lib.rs @@ -48,7 +48,7 @@ pub struct JsCompiler { impl JsCompiler { #[napi(constructor)] #[allow(clippy::new_without_default)] - #[tracing::instrument(level = ...
53
86
86
e8018c54d4581c43c72d27e51d0aa36a64881a9e
Donny/κ°•λ™μœ€
2022-03-10T14:30:03
fix(es/codegen): Fix sourcemap issue caused by reserved `BytePos` values (#3948)
diff --git a/crates/swc_common/src/source_map.rs b/crates/swc_common/src/source_map.rs index 3a98b63495..690790a4e7 100644 --- a/crates/swc_common/src/source_map.rs +++ b/crates/swc_common/src/source_map.rs @@ -1131,6 +1131,11 @@ impl SourceMap { for (pos, lc) in mappings.iter() { let pos = *pos...
3
24
0
de8a7116cd587a6ddb8d734ffd96cdacd076f48c
Austaras
2022-03-10T13:52:54
fix(es/compat): Refer this in constructor when `super_is_callable_constructor` is set (#3944)
diff --git a/crates/swc_ecma_transforms_compat/src/es2015/classes/constructor.rs b/crates/swc_ecma_transforms_compat/src/es2015/classes/constructor.rs index a4af2b2270..a78808127c 100644 --- a/crates/swc_ecma_transforms_compat/src/es2015/classes/constructor.rs +++ b/crates/swc_ecma_transforms_compat/src/es2015/classes/...
3
68
19
aec1a54204e2140511442479753b6502448f25cb
Pig Fang
2022-03-10T06:50:00
feat(preset-env): Update `browserslist-rs` (#3935)
diff --git a/Cargo.lock b/Cargo.lock index 31aebcae13..e095bcb7fe 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -203,9 +203,9 @@ dependencies = [ [[package]] name = "browserslist-rs" -version = "0.8.0" +version = "0.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "67bf6eb040d2686137...
2
3
3
46e9d3f62e07b5aaeac9a9f73bb4b5573ad69b27
Donny/κ°•λ™μœ€
2022-03-10T05:32:00
fix(es): Don't create `.swc` if not required (#3937)
diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs index 63d5401c08..21353072c6 100644 --- a/crates/swc/src/config/mod.rs +++ b/crates/swc/src/config/mod.rs @@ -449,7 +449,9 @@ impl Options { }; #[cfg(feature = "plugin")] - swc_plugin_runner::cache::init_plugin_module_ca...
1
3
1
86ea23785d911f572474d73462cc8bd9af6afaf6
OJ Kwon
2022-03-10T03:15:49
perf(*): Update `tracing` to improve performance of disabled spans (#3932)
diff --git a/Cargo.lock b/Cargo.lock index f54f1e02e0..97e6087412 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3990,9 +3990,9 @@ checksum = "360dfd1d6d30e05fda32ace2c8c70e9c0a9da713275777f5a4dbb8a1893930c6" [[package]] name = "tracing" -version = "0.1.31" +version = "0.1.32" source = "registry+https://github.com/r...
23
26
26
a8ac7e39b0fbd3908c4b506a1739a0ddf33ac250
Donny/κ°•λ™μœ€
2022-03-09T04:44:22
feat(es/parser): Relax MSRV requirement (#3922)
diff --git a/crates/swc_ecma_parser/src/error.rs b/crates/swc_ecma_parser/src/error.rs index 7667024b45..7e350a74cf 100644 --- a/crates/swc_ecma_parser/src/error.rs +++ b/crates/swc_ecma_parser/src/error.rs @@ -422,9 +422,11 @@ impl SyntaxError { SyntaxError::PropertyNamedConstructor => { ...
1
5
3
f575b1bc4868dd46c572c3ef61767fdd2ee2c2b3
Guillaume Malette
2022-03-07T20:39:45
fix(es/module/cjs): Allow re-exports to be lazy (#3856)
diff --git a/crates/swc_ecma_transforms_module/src/common_js.rs b/crates/swc_ecma_transforms_module/src/common_js.rs index 5ad0764570..fa2e40cd83 100644 --- a/crates/swc_ecma_transforms_module/src/common_js.rs +++ b/crates/swc_ecma_transforms_module/src/common_js.rs @@ -620,23 +620,24 @@ impl Fold for CommonJs { ...
2
45
12
3a9af7316748641e8b59b59d014513456ecfc606
Alexander Akait
2022-03-07T19:40:44
refactor(css/parser): Remove unused codes (#3903)
diff --git a/crates/swc_css_parser/src/parser/mod.rs b/crates/swc_css_parser/src/parser/mod.rs index b6ffe5d8dd..1fe6047d8c 100644 --- a/crates/swc_css_parser/src/parser/mod.rs +++ b/crates/swc_css_parser/src/parser/mod.rs @@ -13,7 +13,6 @@ pub mod input; mod selector; #[cfg(test)] mod tests; -mod traits; mod util;...
3
0
23
bd0a9214c3a678a65a814517ffef6c59199ac06b
OJ Kwon
2022-03-07T19:18:48
feat(es/compat): Add tracing support to remaining compat transforms (#3904)
diff --git a/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs b/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs index a2efd99a1d..25391196e8 100644 --- a/crates/swc_ecma_transforms_compat/src/bugfixes/async_arrows_in_class.rs +++ b/crates/swc_ecma_transforms_compat/src/bug...
9
23
0
372f298f5f6faae804370a3caaf8dce309fcb9f5
magic-akari
2022-03-07T10:53:54
feat(common): Align `stable_hasher` to latest rustc (#3895)
diff --git a/crates/swc_common/src/rustc_data_structures/stable_hasher.rs b/crates/swc_common/src/rustc_data_structures/stable_hasher.rs index d8b1841bcf..5c4841668f 100644 --- a/crates/swc_common/src/rustc_data_structures/stable_hasher.rs +++ b/crates/swc_common/src/rustc_data_structures/stable_hasher.rs @@ -1,6 +1,5 ...
2
134
93
5c92b2d4cee64686d0aad788b177b34cd2fd3bfc
Austaras
2022-03-07T10:34:34
fix(es/typescript): Remove imports used in interfaces and type signatures (#3893)
diff --git a/crates/swc_ecma_transforms_typescript/src/strip.rs b/crates/swc_ecma_transforms_typescript/src/strip.rs index e865fc4e66..fb32420bb0 100644 --- a/crates/swc_ecma_transforms_typescript/src/strip.rs +++ b/crates/swc_ecma_transforms_typescript/src/strip.rs @@ -324,8 +324,6 @@ struct Scope { #[derive(Debug,...
2
35
42
3e8efacf3a804c4dbaa3f92fa2f5f08e425b7866
Artur
2022-03-07T04:18:37
perf(es/lints): Extract top level bindings only if the rule is enabled (#3889)
diff --git a/crates/swc_ecma_lints/src/rules/no_alert.rs b/crates/swc_ecma_lints/src/rules/no_alert.rs index 8e17cc24a3..9741073903 100644 --- a/crates/swc_ecma_lints/src/rules/no_alert.rs +++ b/crates/swc_ecma_lints/src/rules/no_alert.rs @@ -19,14 +19,13 @@ pub fn no_alert( top_level_ctxt: SyntaxContext, es_...
3
3
8
3b04789a5750532ab9ccb78a833226b39b47a714
Philip Craig
2022-03-06T09:12:23
perf(es/ast): Implement `Clone` without inline for some enums (#3878)
diff --git a/crates/ast_node/src/lib.rs b/crates/ast_node/src/lib.rs index 4ee8610504..eac968b975 100644 --- a/crates/ast_node/src/lib.rs +++ b/crates/ast_node/src/lib.rs @@ -171,20 +171,42 @@ pub fn ast_node( let mut item = Quote::new(Span::call_site()); item = match input.data { Data::Enum(..) => {...
6
154
8