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 |
|---|---|---|---|---|---|---|---|
f7571630caf249b4a10101a2f1c86b2bbc12d4d6 | magic-akari | 2022-03-05T19:52:45 | fix(es/parser): Allow `await` in non-strict mode (#3871) | diff --git a/crates/swc_ecma_parser/src/parser/expr/ops.rs b/crates/swc_ecma_parser/src/parser/expr/ops.rs
index 865e972e16..b2c77c0c76 100644
--- a/crates/swc_ecma_parser/src/parser/expr/ops.rs
+++ b/crates/swc_ecma_parser/src/parser/expr/ops.rs
@@ -319,7 +319,7 @@ impl<'a, I: Tokens> Parser<I> {
if is!(sel... | 2 | 20 | 3 |
e70c9d8f22ad91f7a1246ac60b0ace8a3b3e7d79 | Donny/강동윤 | 2022-03-05T10:01:55 | fix(es/minifier): Don't remove comments if `compress` is not configured (#3866) | diff --git a/crates/swc/src/builder.rs b/crates/swc/src/builder.rs
index 617b4c42fb..3ff094a4a9 100644
--- a/crates/swc/src/builder.rs
+++ b/crates/swc/src/builder.rs
@@ -343,6 +343,10 @@ impl VisitMut for MinifierPass {
..Default::default()
};
+ if opts.compress.is_none() && ... | 2 | 7 | 1 |
225f9a7f2a3dad917aaf2a231463ec05699b4064 | OJ Kwon | 2022-03-05T05:11:22 | perf(es): Filter logs for `cranelift` out (#3801) | diff --git a/crates/node/src/util.rs b/crates/node/src/util.rs
index 6eec22459b..a59881521d 100644
--- a/crates/node/src/util.rs
+++ b/crates/node/src/util.rs
@@ -11,7 +11,7 @@ use swc_common::{errors::Handler, sync::Lrc, SourceMap};
use tracing::instrument;
use tracing_chrome::ChromeLayerBuilder;
use tracing_subscr... | 1 | 5 | 2 |
cd8bb0fb2c70c30ea421842fc6c5b6837e3ff182 | OJ Kwon | 2022-03-05T04:36:19 | perf(es/compat): Add tracing support for es2015 transforms (#3857) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/block_scoped_fn.rs b/crates/swc_ecma_transforms_compat/src/es2015/block_scoped_fn.rs
index b5e733d8b0..55e6a9df1b 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/block_scoped_fn.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/block_scoped_fn.rs
@... | 27 | 114 | 5 |
367a57df6d66bc11dd750c6b7c30bf3a114e00fa | OJ Kwon | 2022-03-05T04:11:47 | feat(cli): Setup subcommands for the features (#3858) | diff --git a/Cargo.lock b/Cargo.lock
index 8c44d36875..12bf9b3fd5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2823,6 +2823,7 @@ dependencies = [
"serde_json",
"swc",
"swc_common",
+ "swc_trace_macro",
"tracing",
"tracing-chrome",
"tracing-futures",
diff --git a/crates/swc_cli/Cargo.toml b/crates/swc_cli/Ca... | 11 | 84 | 27 |
a933db5a1a54804efefd1b1d901b85a44ba059a5 | OJ Kwon | 2022-03-04T07:28:58 | perf(es/compat): Add tracing support to transforms for from es2017 to es2019 (#3844) | diff --git a/crates/swc_ecma_transforms_compat/src/es2017/async_to_generator.rs b/crates/swc_ecma_transforms_compat/src/es2017/async_to_generator.rs
index c6553965f1..127b89ef94 100644
--- a/crates/swc_ecma_transforms_compat/src/es2017/async_to_generator.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2017/async_to_ge... | 6 | 25 | 0 |
5f8f114b62b90fe0190f714cf51ada55ce40c193 | SWC Bot | 2022-03-03T20:26:32 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 65730d3a25..feee65e7d1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3073,7 +3073,7 @@ dependencies = [
[[package]]
name = "swc_ecma_loader"
-version = "0.28.0"
+version = "0.29.0"
dependencies = [
"ahash",
"anyhow",
@@ -3092,7 +3092,7 @@ dependencies = [
[[package]... | 16 | 61 | 61 |
efc67417a5afd7813c2d09938300b5c372d1a978 | Donny/강동윤 | 2022-03-03T16:35:41 | feat(config): Add a dedicated cached regex (#3832) | diff --git a/Cargo.lock b/Cargo.lock
index be91c15e83..b54f7c32d3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -60,9 +60,9 @@ dependencies = [
[[package]]
name = "anyhow"
-version = "1.0.53"
+version = "1.0.55"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "94a45b455c14666b85fc40a019e... | 11 | 160 | 77 |
351b814ed0f1ca36a1e8fd352674689ffe392eda | Donny/강동윤 | 2022-03-03T14:26:49 | perf(es): Use `Mutex` from `parking_lot` (#3830) | diff --git a/Cargo.lock b/Cargo.lock
index a4d306f3bc..7e16b2a477 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2709,6 +2709,7 @@ dependencies = [
"napi",
"napi-derive",
"once_cell",
+ "parking_lot 0.12.0",
"pathdiff",
"rayon",
"regex",
@@ -3065,6 +3066,7 @@ dependencies = [
"lru",
"normpath",
"once_ce... | 8 | 25 | 26 |
f5103a77256060e2c27ca360d0c58bbcc6b92b13 | Donny/강동윤 | 2022-03-02T06:08:37 | perf(es/parser): Remove duplicated instantiations of `Parser` to reduce binary size (#3813) | diff --git a/crates/swc_ecma_transforms_base/src/helpers/mod.rs b/crates/swc_ecma_transforms_base/src/helpers/mod.rs
index 28326ce9c9..7761d446c0 100644
--- a/crates/swc_ecma_transforms_base/src/helpers/mod.rs
+++ b/crates/swc_ecma_transforms_base/src/helpers/mod.rs
@@ -23,13 +23,12 @@ macro_rules! add_to {
... | 1 | 1 | 2 |
0336029c22a8751d2acb9765f11ead79c77115dc | Pig Fang | 2022-03-01T14:55:35 | perf(css/lints): Skip disabled rules (#3803) | diff --git a/crates/swc_css_lints/src/rule.rs b/crates/swc_css_lints/src/rule.rs
index ce41da0332..7da46d015b 100644
--- a/crates/swc_css_lints/src/rule.rs
+++ b/crates/swc_css_lints/src/rule.rs
@@ -69,15 +69,15 @@ impl Emitter for Capturing {
}
}
-pub(crate) fn visitor_rule<V>(v: V) -> Box<dyn LintRule>
+pub(c... | 13 | 52 | 49 |
8f41d7a10e99c21dc12176ee7724f0e13ca702dd | OJ Kwon | 2022-03-01T10:22:53 | feat(es/compat): Add tracing support for es2020 transforms (#3798) | diff --git a/crates/swc_ecma_transforms_compat/src/es2020/export_namespace_from.rs b/crates/swc_ecma_transforms_compat/src/es2020/export_namespace_from.rs
index 3a691d5d4b..dce23c6eab 100644
--- a/crates/swc_ecma_transforms_compat/src/es2020/export_namespace_from.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2020/ex... | 6 | 21 | 0 |
7fd0eeecb844a182fef39872178e3991356e3ae0 | OJ Kwon | 2022-03-01T08:20:56 | perf(plugin/runner): Optimize `write_into_memory_view` (#3797) | diff --git a/crates/swc_plugin_runner/src/lib.rs b/crates/swc_plugin_runner/src/lib.rs
index 6d52d04b1f..088bfd8866 100644
--- a/crates/swc_plugin_runner/src/lib.rs
+++ b/crates/swc_plugin_runner/src/lib.rs
@@ -15,6 +15,7 @@ use wasmer_wasi::{is_wasi_module, WasiState};
pub mod cache;
+#[tracing::instrument(level ... | 2 | 150 | 32 |
4d7048291fae26c081754a496d9c77ddb2215575 | OJ Kwon | 2022-03-01T06:24:13 | feat(es/compat): Add tracing support for `es2022` transforms (#3785) | diff --git a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/class_name_tdz.rs b/crates/swc_ecma_transforms_compat/src/es2022/class_properties/class_name_tdz.rs
index 7e4179f7b8..84049444ec 100644
--- a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/class_name_tdz.rs
+++ b/crates/swc_ecma_t... | 8 | 25 | 0 |
19b84e7723c381843c98df90f64e5123acdd5808 | Denis Bezrukov | 2022-03-01T04:52:01 | feat(es/dep-graph): Add support for `require.resolve` (#3783) | diff --git a/crates/swc_ecma_dep_graph/src/lib.rs b/crates/swc_ecma_dep_graph/src/lib.rs
index e3130e3f36..b29cd92d9b 100644
--- a/crates/swc_ecma_dep_graph/src/lib.rs
+++ b/crates/swc_ecma_dep_graph/src/lib.rs
@@ -185,23 +185,26 @@ impl<'a> Visit for DependencyCollector<'a> {
}
fn visit_call_expr(&mut self... | 1 | 39 | 11 |
5ae907f6f21d31da708ac7237536bd6f838856c3 | OJ Kwon | 2022-03-01T04:26:37 | fix(es/react): Catch refresh directives widely (#3791) | diff --git a/crates/swc_ecma_transforms_react/src/refresh/mod.rs b/crates/swc_ecma_transforms_react/src/refresh/mod.rs
index 4fbea1dca1..03fa356dcf 100644
--- a/crates/swc_ecma_transforms_react/src/refresh/mod.rs
+++ b/crates/swc_ecma_transforms_react/src/refresh/mod.rs
@@ -246,12 +246,37 @@ where
let mut sh... | 2 | 89 | 8 |
bc60a6e90ccc1adcb8d9eda9ef47725e20fbfa23 | OJ Kwon | 2022-03-01T03:46:16 | feat(plugin): Expose `swc_ecma_quote` (#3790) | diff --git a/Cargo.lock b/Cargo.lock
index 97db389582..e47001d8da 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3569,6 +3569,7 @@ dependencies = [
"swc_atoms",
"swc_common",
"swc_ecma_ast",
+ "swc_ecma_quote",
"swc_ecma_visit",
"swc_plugin_macro",
]
diff --git a/crates/swc_ecma_quote/Cargo.toml b/crates/swc_e... | 4 | 6 | 1 |
3c2f5dbd6c80a012769e515b5fe6febabb6a01bb | SWC Bot | 2022-03-01T02:58:19 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 29ce5c66fa..97db389582 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3077,7 +3077,7 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
-version = "0.91.11"
+version = "0.91.12"
dependencies = [
"either",
"enum_kind",
diff --git a/crates/swc_ecma_parser/Cargo.toml... | 2 | 2 | 2 |
b8211da1c9a8277cf09a8a3a1d7ae537b5d6e783 | Pig Fang | 2022-02-28T16:54:01 | refactor(css/lints): Simplify error reporting API (#3781) | diff --git a/crates/swc_css_lints/src/config.rs b/crates/swc_css_lints/src/config.rs
index 81f6c00f87..e4e838bb6b 100644
--- a/crates/swc_css_lints/src/config.rs
+++ b/crates/swc_css_lints/src/config.rs
@@ -5,7 +5,7 @@ use serde::{Deserialize, Serialize};
use crate::rules::{
at_rule_no_unknown::AtRuleNoUnknownCon... | 13 | 140 | 253 |
fe0ddcc54b0f8343a3a3d227bde8b38fa47ebd80 | Donny/강동윤 | 2022-02-27T13:21:38 | feat(es/quote): Implement quasi quoter partially (#3155) | diff --git a/Cargo.lock b/Cargo.lock
index 1879f807d9..920cb0b1d8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3109,6 +3109,32 @@ dependencies = [
"testing",
]
+[[package]]
+name = "swc_ecma_quote"
+version = "0.1.0"
+dependencies = [
+ "swc_atoms",
+ "swc_common",
+ "swc_ecma_ast",
+ "swc_ecma_quote_macros",
+]
+... | 27 | 1,106 | 10 |
7de7ecaa85f21d074d8ca8a05dae2bf5b4ab3ce8 | Denis Bezrukov | 2022-02-27T04:55:28 | feat(es/dep-graph): Add `TsImportEqualsDecl` for `DependencyCollector` (#3758) | diff --git a/crates/swc_ecma_dep_graph/src/lib.rs b/crates/swc_ecma_dep_graph/src/lib.rs
index 8f1cc06899..998ac0fe6e 100644
--- a/crates/swc_ecma_dep_graph/src/lib.rs
+++ b/crates/swc_ecma_dep_graph/src/lib.rs
@@ -25,8 +25,10 @@ pub fn analyze_dependencies(
pub enum DependencyKind {
Import,
ImportType,
+ ... | 1 | 65 | 2 |
3d944656bfa47532a79925f5b7392e2aec1a8a30 | Donny/강동윤 | 2022-02-26T06:41:14 | refactor(es): Make compilation faster (#3749) | diff --git a/crates/jsdoc/tests/fixture.rs b/crates/jsdoc/tests/fixture.rs
index 71d212c6d4..97f716037a 100644
--- a/crates/jsdoc/tests/fixture.rs
+++ b/crates/jsdoc/tests/fixture.rs
@@ -7,7 +7,7 @@ use swc_common::{
comments::{Comment, CommentKind, Comments},
BytePos, DUMMY_SP,
};
-use swc_ecma_parser::{lex... | 19 | 226 | 259 |
41f92d228b778193e12c51466630a42cb8953599 | OJ Kwon | 2022-02-26T03:32:46 | feat(cli): Add tracing options for `compile` command (#3746) | diff --git a/Cargo.lock b/Cargo.lock
index 9742e9dadb..2b5ccb7205 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2777,6 +2777,10 @@ dependencies = [
"serde_json",
"swc",
"swc_common",
+ "tracing",
+ "tracing-chrome",
+ "tracing-futures",
+ "tracing-subscriber",
"walkdir",
]
diff --git a/crates/swc/src/lib.rs b... | 6 | 81 | 4 |
2ab150c60368804ca1a570a9a1f73ad4fc8ef056 | SWC Bot | 2022-02-26T03:11:27 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index b808a41d49..9742e9dadb 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2667,7 +2667,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "swc"
-version = "0.137.1"
+version = "0.137.2"
dependencies = [
"ahash",
"anyhow",
@... | 8 | 14 | 14 |
47ccff8a7ca0054fcd761ea5878a92165f7e1c6b | Donny/강동윤 | 2022-02-26T00:29:05 | feat(es/parser): Provide more api for reducing binary size (#3747) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 2fb7b910e1..6951306831 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -42,7 +42,7 @@ use swc_ecma_minifier::option::{
};
#[allow(deprecated)]
pub use swc_ecma_parser::JscTarget;
-use swc_ecma_parser::{lexe... | 11 | 179 | 108 |
b0b5d5d0c2779e48d815fbbc65c01d5344590763 | Donny/강동윤 | 2022-02-25T20:56:51 | feat(visit): Allow using `?Sized` as visitor (#3745) | diff --git a/crates/swc_visit_macros/src/lib.rs b/crates/swc_visit_macros/src/lib.rs
index 1d5f760a3a..f63bed595c 100644
--- a/crates/swc_visit_macros/src/lib.rs
+++ b/crates/swc_visit_macros/src/lib.rs
@@ -446,7 +446,7 @@ fn make(mode: Mode, stmts: &[Stmt]) -> Quote {
let trait_decl = match mode {
... | 1 | 14 | 14 |
1094018153bc7d0373d9b7b533193191f416406d | Donny/강동윤 | 2022-02-25T19:46:46 | perf(es/modules): Reduce usage of generics (#3743) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 7660e7c44e..2fb7b910e1 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -1660,12 +1660,12 @@ impl Merge for HiddenTransformConfig {
}
}
-fn build_resolver(base_url: PathBuf, paths: CompiledPaths) -> Swc... | 7 | 87 | 111 |
b4830b61dc7be716fd4de3703537517e6adefdba | Donny/강동윤 | 2022-02-25T14:01:33 | feat(macros): Add `#[swc_trace]` (#3738) | diff --git a/Cargo.lock b/Cargo.lock
index 0f7981a720..b42cd5146a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3189,6 +3189,7 @@ dependencies = [
"swc_ecma_transforms_testing",
"swc_ecma_utils",
"swc_ecma_visit",
+ "swc_trace_macro",
"testing",
"tracing",
]
@@ -3579,6 +3580,15 @@ dependencies = [
"tracing"... | 5 | 65 | 6 |
fd223793e86f70400a3a69d7f7c8a4775b8abaad | Donny/강동윤 | 2022-02-25T06:50:19 | refactor(es/transforms): Use recommended ast apis (#3735) | diff --git a/crates/swc_ecma_ast/src/lit.rs b/crates/swc_ecma_ast/src/lit.rs
index 288f4332d9..ad011ee896 100644
--- a/crates/swc_ecma_ast/src/lit.rs
+++ b/crates/swc_ecma_ast/src/lit.rs
@@ -233,6 +233,15 @@ impl Str {
}
}
+/// A boolean literal.
+///
+///
+/// # Creation
+///
+/// If you are creating a boolean... | 17 | 55 | 158 |
8f1aef47d4bc56fd10f8c15b95aee6f15b92362b | SWC Bot | 2022-02-25T06:10:45 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index e5f9b646a2..49d8746b0e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2667,7 +2667,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "swc"
-version = "0.135.1"
+version = "0.136.0"
dependencies = [
"ahash",
"anyhow",
@... | 20 | 101 | 101 |
d8b01660dcd0bca43993043e8fa6ed33c62894a9 | OJ Kwon | 2022-02-25T02:31:22 | fix(plugin/macro): Do not free guest memory twice (#3732) | diff --git a/crates/swc_plugin_macro/src/lib.rs b/crates/swc_plugin_macro/src/lib.rs
index 6984f6041e..df4ec47e64 100644
--- a/crates/swc_plugin_macro/src/lib.rs
+++ b/crates/swc_plugin_macro/src/lib.rs
@@ -29,18 +29,15 @@ fn handle_func(func: ItemFn) -> TokenStream {
#[cfg(target_arch = "wasm32")] // Allow te... | 1 | 5 | 8 |
ba49a09deb88089c901d881975c900d497631e9a | SWC Bot | 2022-02-25T01:25:13 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index ac826afed4..515e8002ce 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2884,7 +2884,7 @@ dependencies = [
[[package]]
name = "swc_ecma_ast"
-version = "0.68.1"
+version = "0.68.2"
dependencies = [
"arbitrary",
"is-macro",
diff --git a/crates/swc_ecma_ast/Cargo.toml b/cra... | 2 | 2 | 2 |
e21579d84ec287632393480e86032cc228bef0ce | Donny/강동윤 | 2022-02-24T13:36:37 | perf(es/parser): Reduce usage of generics to reduce binary size (#3726) | diff --git a/crates/swc_ecma_parser/src/parser/class_and_fn.rs b/crates/swc_ecma_parser/src/parser/class_and_fn.rs
index a45fd85dc0..6509cb0efd 100644
--- a/crates/swc_ecma_parser/src/parser/class_and_fn.rs
+++ b/crates/swc_ecma_parser/src/parser/class_and_fn.rs
@@ -2,7 +2,7 @@ use either::Either;
use swc_atoms::js_wo... | 2 | 109 | 84 |
6ca76b81be8491a61a041d34e8bb88a1be2af823 | SWC Bot | 2022-02-24T03:28:01 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 60121c811a..bd3256ffe3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3105,7 +3105,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.61.0"
+version = "0.61.1"
dependencies = [
"better_scoped_tls",
"once_cell",
diff --git a/crates/swc_ecma... | 2 | 2 | 2 |
135acf3b42221b8a9e684e39d762ad8481c75f73 | Donny/강동윤 | 2022-02-23T05:37:07 | refactor(es): Improve ast apis (#3690) | diff --git a/crates/swc_ecma_ast/src/expr.rs b/crates/swc_ecma_ast/src/expr.rs
index 91f2a885a3..04e3cd85b7 100644
--- a/crates/swc_ecma_ast/src/expr.rs
+++ b/crates/swc_ecma_ast/src/expr.rs
@@ -18,7 +18,7 @@ use crate::{
TsAsExpr, TsConstAssertion, TsInstantiation, TsNonNullExpr, TsTypeAnn, TsTypeAssertion,
... | 24 | 141 | 164 |
1e49fcd44daa3107a180f7016d72f8138fb56688 | Guillaume Malette | 2022-02-23T05:07:53 | fix(es/typescript): Fix `name` of decorated classes (#3689) | diff --git a/crates/swc/tests/projects.rs b/crates/swc/tests/projects.rs
index 18c67d06e2..cf7bb1a16b 100644
--- a/crates/swc/tests/projects.rs
+++ b/crates/swc/tests/projects.rs
@@ -900,6 +900,37 @@ fn opt_source_file_name_1() {
assert!(map.contains("entry-foo"));
}
+#[test]
+fn issue_2224() {
+ let output ... | 2 | 35 | 2 |
3cf3b20f15e8ddbb2c32405c71183cfdbbb87835 | OJ Kwon | 2022-02-23T04:38:43 | feat(cli): Support stdin (#3688) | diff --git a/Cargo.lock b/Cargo.lock
index abfe497143..343829c554 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2740,6 +2740,7 @@ name = "swc_cli"
version = "0.8.0"
dependencies = [
"anyhow",
+ "atty",
"clap",
"path-absolutize",
"rayon",
diff --git a/crates/swc_cli/Cargo.toml b/crates/swc_cli/Cargo.toml
index ... | 3 | 149 | 35 |
ca0a448e8ff85a4a0d02e3229ebcb2603a0b5d9a | William Tetlow | 2022-02-22T20:13:09 | feat(plugin): Pass `NODE_ENV` to plugins using the plugin context (#3677) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 5b65ab2e5a..2902e6f9f4 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -437,6 +437,7 @@ impl Options {
let plugin_context = PluginContext {
filename: transform_filename,
+ en... | 2 | 4 | 0 |
319996698d5531ea04afe8a6b3f3ed657620f8b4 | Pig Fang | 2022-02-22T07:16:36 | feat(es/preset-env): Upgrade `browserslist-rs` (#3670) | diff --git a/Cargo.lock b/Cargo.lock
index 39c69fa4f7..a904d57e70 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -203,9 +203,9 @@ dependencies = [
[[package]]
name = "browserslist-rs"
-version = "0.7.0"
+version = "0.8.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "38854056e7d44ad7af... | 2 | 3 | 3 |
f237aeea79e140e5b6e105304fccfc48960462bf | Jan Nicklas | 2022-02-22T05:30:48 | feat(cli): Improve the template `package.json` for plugins (#3641) | diff --git a/crates/swc_cli/src/commands/plugin.rs b/crates/swc_cli/src/commands/plugin.rs
index 53daec5902..0775f965f6 100644
--- a/crates/swc_cli/src/commands/plugin.rs
+++ b/crates/swc_cli/src/commands/plugin.rs
@@ -190,20 +190,17 @@ target = "{}""#,
"name": "{}",
"version": "0.1.0",
"description": ""... | 1 | 6 | 9 |
0f1afcb8963b27bc04145bc3e947f7408c8d9a18 | Jan Nicklas | 2022-02-19T12:31:22 | chore(cli): Improve the plugin template (#3632) | diff --git a/crates/swc_cli/src/commands/plugin.rs b/crates/swc_cli/src/commands/plugin.rs
index a961f65710..53daec5902 100644
--- a/crates/swc_cli/src/commands/plugin.rs
+++ b/crates/swc_cli/src/commands/plugin.rs
@@ -220,6 +220,8 @@ pub struct TransformVisitor;
impl VisitMut for TransformVisitor {
// Implemen... | 1 | 3 | 1 |
fd0e952aec427e86d276b51e8f6659de8f9eac94 | Donny/강동윤 | 2022-02-19T10:31:54 | perf(es/minifier): Fix performance bug of the mangler (#3633)
swc_ecma_minifier:
- Use a bi-directional hashmap instead of iterating all keys. | diff --git a/crates/swc_ecma_minifier/examples/minifier.rs b/crates/swc_ecma_minifier/examples/minifier.rs
index 24f7e7e5c7..b315d0d1db 100644
--- a/crates/swc_ecma_minifier/examples/minifier.rs
+++ b/crates/swc_ecma_minifier/examples/minifier.rs
@@ -6,7 +6,7 @@ use swc_common::{input::SourceFileInput, sync::Lrc, Mark,... | 5 | 51 | 63 |
5c035513410326a0d5d0dfa61f7440e9d0987632 | Austaras | 2022-02-18T07:23:18 | feat(es/compat): Check for duplicate private names and undefined private names (#3613) | diff --git a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/mod.rs b/crates/swc_ecma_transforms_compat/src/es2022/class_properties/mod.rs
index 920eb62215..2759d1400a 100644
--- a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/mod.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2022/class... | 2 | 111 | 38 |
05aecf507e9bf46002e0629b159245ff9c0f7b2c | OJ Kwon | 2022-02-18T05:50:51 | fix(plugin): Fix caching of wasm modulee (#3616) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index c5ccaf8526..c7340f8029 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -439,6 +439,9 @@ impl Options {
filename: transform_filename,
};
+ #[cfg(feature = "plugin")]
+ swc_... | 8 | 199 | 160 |
e863f9dd0486a53c835e9cd08cfa7ab7c31dd087 | Kirill Mironov | 2022-02-18T05:21:58 | fix(swc_common): Fix names of proxied functions (#3608) | diff --git a/crates/swc_common/src/syntax_pos/hygiene.rs b/crates/swc_common/src/syntax_pos/hygiene.rs
index aef2e260de..66e40db910 100644
--- a/crates/swc_common/src/syntax_pos/hygiene.rs
+++ b/crates/swc_common/src/syntax_pos/hygiene.rs
@@ -81,16 +81,16 @@ extern "C" {
// on their side.
fn __mark_fresh_prox... | 1 | 12 | 12 |
5ed3f3a503ef01d162b45e0671a85f69b92f360c | OJ Kwon | 2022-02-17T11:02:54 | feat(cli): Initialize compile command (#3602) | diff --git a/Cargo.lock b/Cargo.lock
index 8605d0b786..e32e38b616 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -305,9 +305,9 @@ dependencies = [
[[package]]
name = "clap"
-version = "3.0.14"
+version = "3.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "b63edc3f163b3c71ec8aa23f9bd6... | 5 | 264 | 20 |
9df0d7c854b1ebceb955a0cfe3fc7edb5891c0d0 | Donny/강동윤 | 2022-02-17T06:40:50 | doc(swc_common): Document error reporting using `HANDLER` (#3605) | diff --git a/crates/swc_common/src/errors/mod.rs b/crates/swc_common/src/errors/mod.rs
index 1d48d71f56..c9d0ad1920 100644
--- a/crates/swc_common/src/errors/mod.rs
+++ b/crates/swc_common/src/errors/mod.rs
@@ -304,6 +304,43 @@ impl error::Error for ExplicitBug {
/// A handler deals with errors; certain errors
/// (f... | 1 | 39 | 0 |
71a94b143ed881eca9097e724f5dd4986241a9b1 | magic-akari | 2022-02-17T06:11:43 | fix(es/lints): Use `kebab-case` for configuration (#3590) | diff --git a/crates/swc_ecma_lints/src/config.rs b/crates/swc_ecma_lints/src/config.rs
index 9eec937034..42d766f271 100644
--- a/crates/swc_ecma_lints/src/config.rs
+++ b/crates/swc_ecma_lints/src/config.rs
@@ -41,30 +41,30 @@ impl<T: Debug + Clone + Serialize + Default> RuleConfig<T> {
#[derive(Debug, Clone, Defaul... | 1 | 8 | 8 |
50611019992618b0d0a2783ddca4e21bc6e1af69 | OJ Kwon | 2022-02-17T05:16:14 | build(swc): Bump the version of `parking_lot` (#3604) | diff --git a/Cargo.lock b/Cargo.lock
index 39b3c48910..cdff90e020 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1175,9 +1175,9 @@ dependencies = [
[[package]]
name = "lock_api"
-version = "0.4.5"
+version = "0.4.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "712a4d093c9976e24e7dbca... | 5 | 21 | 11 |
d4cac369b0e159841529ebb8500e9d363736adee | SWC Bot | 2022-02-16T11:10:00 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 72cc442dff..1a18f86f2e 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2906,7 +2906,7 @@ dependencies = [
[[package]]
name = "swc_ecma_lints"
-version = "0.14.8"
+version = "0.14.9"
dependencies = [
"ahash",
"auto_impl",
diff --git a/crates/swc_ecma_lints/Cargo.toml b/cr... | 2 | 2 | 2 |
d77c090b27016a64924b1644c9f917643a6ee731 | SWC Bot | 2022-02-16T10:12:20 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index c808cac0d6..72cc442dff 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2598,7 +2598,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "swc"
-version = "0.127.3"
+version = "0.127.4"
dependencies = [
"ahash",
"anyhow",
d... | 2 | 2 | 2 |
2ab99c740421be1b59fa3c70ed35a0c6db16e022 | SWC Bot | 2022-02-16T09:44:50 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 2db03b49f1..c808cac0d6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2598,7 +2598,7 @@ checksum = "73473c0e59e6d5812c5dfe2a064a6444949f089e20eec9a2e5506596494e4623"
[[package]]
name = "swc"
-version = "0.127.2"
+version = "0.127.3"
dependencies = [
"ahash",
"anyhow",
d... | 2 | 2 | 2 |
df69930c7f27127bc4e8268ee14e6cc28c157748 | William Tetlow | 2022-02-16T09:36:32 | fix(es): Pass `FileName::Custom` to plugins (#3578) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 818ed4bd8c..c5ccaf8526 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -431,6 +431,7 @@ impl Options {
let transform_filename = match base {
FileName::Real(path) => path.as_os_str().to_... | 1 | 1 | 0 |
88e07b21d1f8a6439335134747e3da3bc1da646d | OJ Kwon | 2022-02-16T05:43:25 | refactor(plugin): Remove direct dependency to `once_cell` (#3582) | diff --git a/Cargo.lock b/Cargo.lock
index 974c27bba2..f38f68af53 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3440,7 +3440,6 @@ dependencies = [
name = "swc_plugin"
version = "0.27.0"
dependencies = [
- "once_cell",
"swc_atoms",
"swc_common",
"swc_ecma_ast",
diff --git a/crates/swc_plugin/Cargo.toml b/crates/... | 4 | 3 | 6 |
a96217feaa9fea72cf828f2ec02f0639b5dd1561 | OJ Kwon | 2022-02-15T08:03:17 | feat(plugin): Add `PluginContext` (#3568) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 4e39921685..818ed4bd8c 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -60,7 +60,11 @@ use swc_ecma_transforms_optimization::{inline_globals2, GlobalExprMap};
use swc_ecma_visit::{Fold, VisitMutWith};
use ... | 8 | 127 | 34 |
bfc9897e347e2adc6efb5bd66151abdb9cbaa4fa | Donny/강동윤 | 2022-02-15T07:29:45 | fix(es/minifier): Disable name mangler if `eval` is used (#3526) | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index 4f1ca9ac3b..cbcaf40a56 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -20,7 +20,7 @@
use mode::Minification;
use pass::postcompress::postcompress_optimizer;
-use swc_common::{c... | 4 | 42 | 6 |
f67796a962cfd1e5c33206622c325dfbdd3b4ee2 | Austaras | 2022-02-15T06:42:40 | fix(es/utils): Keep arguments to `super` call (#3570) | diff --git a/crates/swc_ecma_transforms_compat/tests/es2015_parameters.rs b/crates/swc_ecma_transforms_compat/tests/es2015_parameters.rs
index 96817ed9cf..16e65510d6 100644
--- a/crates/swc_ecma_transforms_compat/tests/es2015_parameters.rs
+++ b/crates/swc_ecma_transforms_compat/tests/es2015_parameters.rs
@@ -1907,6 +1... | 2 | 38 | 13 |
d6477a76cf088072f5355335f48413fbbc9310c7 | OJ Kwon | 2022-02-15T03:05:09 | feat(plugin/runner): Improve resolver support for npm (#3566) | diff --git a/Cargo.lock b/Cargo.lock
index 5523df3f27..fb11a8b392 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3470,6 +3470,7 @@ dependencies = [
"swc_atoms",
"swc_common",
"swc_ecma_ast",
+ "swc_ecma_loader",
"swc_ecma_parser",
"swc_ecma_visit",
"testing",
diff --git a/crates/swc/src/config/mod.rs b/crates... | 6 | 61 | 181 |
ad6f24ad83ed0086ab7f4e260800df598212be25 | OJ Kwon | 2022-02-15T02:58:44 | build(*): Dedupe `once_cell` (#3567) | diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml
index a50aa45570..a47aecf592 100644
--- a/crates/swc/Cargo.toml
+++ b/crates/swc/Cargo.toml
@@ -39,7 +39,7 @@ dashmap = "4.0.2"
either = "1"
indexmap = {version = "1", features = ["serde"]}
lru = "0.7.1"
-once_cell = "1"
+once_cell = "1.9.0"
pathdiff = "0.2... | 15 | 15 | 15 |
d5aee470cb6ea1e25057a5a36f0a19274c1f42b3 | Alexander Akait | 2022-02-14T08:34:26 | refactor(css/parser): Remove `parse_values`, which is not used (#3552) | diff --git a/crates/swc_css_codegen/tests/fixture.rs b/crates/swc_css_codegen/tests/fixture.rs
index e54eaf8506..0a092875bc 100644
--- a/crates/swc_css_codegen/tests/fixture.rs
+++ b/crates/swc_css_codegen/tests/fixture.rs
@@ -36,7 +36,6 @@ fn run(input: &Path, minify: bool) {
let mut stylesheet: Stylesheet = ... | 4 | 0 | 18 |
45b44b088cf0c0964232b66bb4b7b5f9e539623d | Austaras | 2022-02-14T06:44:33 | fix(es/compat): Handle arrow parameters in class fields (#3556) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/parameters.rs b/crates/swc_ecma_transforms_compat/src/es2015/parameters.rs
index d4c686187d..69a218ff1f 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/parameters.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/parameters.rs
@@ -27,6 +27,7 @@ str... | 2 | 110 | 6 |
6d132ca0765a46b39a6844b7de2e7f2655f7dd1b | RiESAEX | 2022-02-13T05:59:48 | perf(es/optimization): Replace `map_with_mut` with proper implementation (#3539) | diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs
index 60a6f3af03..0d164d3961 100644
--- a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs
+++ b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.... | 1 | 316 | 400 |
342c320bfa1f43f25262c0ba403a51df8228c655 | magic-akari | 2022-02-12T19:34:06 | fix(es/compat): Fix destructing of `const` (#3545) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
index 61642d61e8..6b9bd21d9e 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
@@ -960,6... | 2 | 34 | 0 |
068a4087caa12f2c28ec62b5e194a85efcc907a1 | Donny/강동윤 | 2022-02-12T09:18:24 | chore(ci): Remove `cargo-uttil` from dependency (#3543) | diff --git a/Cargo.lock b/Cargo.lock
index 299946bbdd..115929dbb8 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -263,28 +263,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c4872d67bab6358e59559027aa3b9157c53d9358c51423c17554809a8858e0f8"
-[[package]]
-name = "cargo... | 3 | 28 | 105 |
fbe91963bfb80976eebadc9f0e94e080ed81d624 | Donny/강동윤 | 2022-02-12T06:53:41 | fix(plugin): Allow testing (#3542) | diff --git a/crates/swc_plugin/src/context.rs b/crates/swc_plugin/src/context.rs
index 49ff4f5882..78d8667d58 100644
--- a/crates/swc_plugin/src/context.rs
+++ b/crates/swc_plugin/src/context.rs
@@ -1,5 +1,6 @@
use swc_common::plugin::Serialized;
+#[cfg(target_arch = "wasm32")] // Allow testing
extern "C" {
fn... | 2 | 6 | 1 |
05cf2e92e690c72ca6d49fee1dd33c9e776ba304 | OJ Kwon | 2022-02-12T05:27:04 | fix(cli): Update the plugin template for pinned dependencies (#3538) | diff --git a/crates/swc_cli/src/commands/plugin.rs b/crates/swc_cli/src/commands/plugin.rs
index 18f1c8962d..40a2374c50 100644
--- a/crates/swc_cli/src/commands/plugin.rs
+++ b/crates/swc_cli/src/commands/plugin.rs
@@ -146,11 +146,6 @@ edition = "2021"
[lib]
crate-type = ["cdylib"]
-# Workaround for https://github.... | 1 | 0 | 5 |
a4d914dab5a4263a9f2ac396decd11b64dfc0714 | OJ Kwon | 2022-02-12T05:24:49 | chore(build): Remove version pinning of `parking_lot_core` (#3537) | diff --git a/Cargo.lock b/Cargo.lock
index 9a1d77212e..be0027c8f3 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1752,7 +1752,7 @@ checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb"
dependencies = [
"instant",
"lock_api",
- "parking_lot_core",
+ "parking_lot_core 0.8.0",
]
[[package]]
... | 6 | 97 | 28 |
2d997b38066ff01e2e84284ae3a1f79f8df8bb6b | Alexander Akait | 2022-02-10T07:36:29 | refactor(css/parser): Refactor code for error recovery (#3508) | diff --git a/crates/swc_css_parser/src/parser/base.rs b/crates/swc_css_parser/src/parser/base.rs
index 04c2fdede4..5aec150028 100644
--- a/crates/swc_css_parser/src/parser/base.rs
+++ b/crates/swc_css_parser/src/parser/base.rs
@@ -53,14 +53,14 @@ where
tok!("<!--") | tok!("-->") => {
... | 1 | 62 | 35 |
bc250262f2af38086eeed59e4d42d14ff44d5b83 | OJ Kwon | 2022-02-10T06:57:42 | feat(plugin): implement proxy for `Mark` and `SyntaxContext` (#3511) | diff --git a/crates/swc_common/src/syntax_pos/hygiene.rs b/crates/swc_common/src/syntax_pos/hygiene.rs
index 7a65f926ad..aef2e260de 100644
--- a/crates/swc_common/src/syntax_pos/hygiene.rs
+++ b/crates/swc_common/src/syntax_pos/hygiene.rs
@@ -15,6 +15,7 @@
//! and definition contexts*. J. Funct. Program. 22, 2 (March ... | 3 | 358 | 61 |
5488159ba5dd124878ebdc50c390a51ab3b07f16 | William Tetlow | 2022-02-10T04:53:47 | feat(es/minifier): Implement `reserved` mangle option (#3476) | diff --git a/crates/swc_ecma_minifier/src/option/mod.rs b/crates/swc_ecma_minifier/src/option/mod.rs
index dda0cbe962..fbfe566c6e 100644
--- a/crates/swc_ecma_minifier/src/option/mod.rs
+++ b/crates/swc_ecma_minifier/src/option/mod.rs
@@ -60,13 +60,16 @@ pub struct MangleOptions {
#[serde(default, alias = "safar... | 4 | 194 | 6 |
494b4c8203514dd9f21b2bc3804ba8c44d46a4a1 | OJ Kwon | 2022-02-09T04:56:39 | feat(swc/plugin): Implement proxy for `Mark::fresh` (#3492) | diff --git a/crates/swc_common/src/syntax_pos/hygiene.rs b/crates/swc_common/src/syntax_pos/hygiene.rs
index 65adcdd08c..f54bcb439a 100644
--- a/crates/swc_common/src/syntax_pos/hygiene.rs
+++ b/crates/swc_common/src/syntax_pos/hygiene.rs
@@ -61,15 +61,54 @@ struct MarkData {
is_builtin: bool,
}
+/// List of pr... | 7 | 82 | 12 |
8bf5cf4d030ec5ab615924b938c8c027c600e3e1 | Donny/강동윤 | 2022-02-08T10:50:22 | chore(es): Fix clippy warnings (#3482) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 8d70a55926..3d59ca97bf 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -524,6 +524,7 @@ fn default_cwd() -> PathBuf {
/// `.swcrc` file
#[derive(Debug, Clone, Deserialize)]
#[serde(untagged, rename = "swcrc... | 34 | 88 | 84 |
d473a6597653e59fc485ffb9cb116d23b4b55e70 | OJ Kwon | 2022-02-08T05:06:10 | feat(plugin): Support global `HANDLER` in the plugin context (#3478) | diff --git a/Cargo.lock b/Cargo.lock
index e70d58f03a..bdc43eb566 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3451,6 +3451,7 @@ dependencies = [
name = "swc_plugin"
version = "0.25.0"
dependencies = [
+ "once_cell",
"swc_atoms",
"swc_common",
"swc_ecma_ast",
diff --git a/crates/swc_common/src/errors/diagnosti... | 9 | 81 | 41 |
b06a5abe5868c3652fe89927acd3a56ea437b113 | Donny/강동윤 | 2022-02-07T14:03:08 | chore(es/lints): Fix CI | diff --git a/crates/swc_ecma_lints/Cargo.toml b/crates/swc_ecma_lints/Cargo.toml
index 7fec37bdf6..6464d54325 100644
--- a/crates/swc_ecma_lints/Cargo.toml
+++ b/crates/swc_ecma_lints/Cargo.toml
@@ -14,7 +14,7 @@ parking_lot = "0.11"
rayon = "1.5.1"
serde = {version = "1.0.133", features = ["derive"]}
swc_atoms = {v... | 1 | 1 | 1 |
69660fd161e0cce5eca7b7f5d436d4bb67dea64f | Alexander Akait | 2022-02-07T12:34:41 | refactor(css/ast): Remove unused types (#3465) | diff --git a/crates/swc_css_ast/src/selector.rs b/crates/swc_css_ast/src/selector.rs
index dafc4eb282..8d5e23bd51 100644
--- a/crates/swc_css_ast/src/selector.rs
+++ b/crates/swc_css_ast/src/selector.rs
@@ -113,9 +113,6 @@ pub enum SubclassSelector {
#[tag("PseudoElementSelector")]
PseudoElement(PseudoEleme... | 6 | 1 | 49 |
032f397b52415378ede985be35713a3482093958 | magic-akari | 2022-02-05T08:38:48 | fix(es/fixer): Handle more expressions in the super class position (#3452) | diff --git a/crates/swc_ecma_transforms_base/src/fixer.rs b/crates/swc_ecma_transforms_base/src/fixer.rs
index d7227a5fa3..817b4ac0dd 100644
--- a/crates/swc_ecma_transforms_base/src/fixer.rs
+++ b/crates/swc_ecma_transforms_base/src/fixer.rs
@@ -305,7 +305,15 @@ impl VisitMut for Fixer<'_> {
self.ctx = Contex... | 1 | 33 | 1 |
3bb2a6ccca4e78412f80aea4fe6c22d04d345a00 | magic-akari | 2022-02-04T03:33:19 | fix(es/compat): Handle initializer hole in array patterns (#3442) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
index 06b59bc875..9aaab697c3 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/destructuring.rs
@@ -434,4... | 2 | 132 | 25 |
1dcc188dd8230954e2801f7c6e3034b0c0215bc4 | RiESAEX | 2022-01-28T06:36:20 | fix(es/modules): Allow using dynamic import with a name from another import (#3390) | diff --git a/crates/swc_ecma_transforms_module/src/util.rs b/crates/swc_ecma_transforms_module/src/util.rs
index 4af62997a7..604ee1008b 100644
--- a/crates/swc_ecma_transforms_module/src/util.rs
+++ b/crates/swc_ecma_transforms_module/src/util.rs
@@ -506,13 +506,21 @@ impl Scope {
Expr::Call(CallExpr {
... | 2 | 45 | 2 |
38c2499358e2dc4df5b6acee25da54fe411f6e8a | Donny/강동윤 | 2022-01-28T04:43:29 | fix(es/minifier): Fix evaluator (#3391) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/hoist_props.rs b/crates/swc_ecma_minifier/src/compress/optimize/hoist_props.rs
index 90b76924a7..e54916107c 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/hoist_props.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/hoist_props.rs
@@ -99,6 ... | 3 | 70 | 29 |
0359deb4841be743d73db4536d4a22ac797d7f65 | Donny/강동윤 | 2022-01-27T10:01:58 | perf(node-swc): Speed up `parse` and `parseFile` (#3380)
node-swc:
- Use a worker thread for json serialization. | diff --git a/crates/node/src/parse.rs b/crates/node/src/parse.rs
index 026d3f52fa..de93969c52 100644
--- a/crates/node/src/parse.rs
+++ b/crates/node/src/parse.rs
@@ -13,7 +13,6 @@ use std::{
};
use swc::{config::ParseOptions, Compiler};
use swc_common::FileName;
-use swc_ecma_ast::Program;
// ----- Parsing -----... | 1 | 13 | 8 |
3a238df25a4c8dd9bc809be5c191ca4533de121e | Donny | 2022-01-27T07:29:12 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 947c021645..424a94cc22 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2652,7 +2652,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.119.1"
+version = "0.119.2"
dependencies = [
"ahash",
"anyhow",
@@ -3070,7 +3070,7 @@ dependencies = [
[[package]]
name = ... | 4 | 9 | 9 |
d3d754bd174bfbd0f6fc25276c40e46e3a3da01f | Pig Fang | 2022-01-27T07:00:35 | feat(es/preset-env): Upgrade `browserslist-rs` (#3375) | diff --git a/Cargo.lock b/Cargo.lock
index db47557c06..947c021645 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -196,9 +196,9 @@ dependencies = [
[[package]]
name = "browserslist-rs"
-version = "0.6.0"
+version = "0.7.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "31071741816efb54c4... | 2 | 3 | 3 |
8a0ebebb08af5335c8d0fc5522af6bf899114c98 | Donny | 2022-01-26T11:37:51 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 3664144fc7..223567ec44 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2792,7 +2792,7 @@ dependencies = [
[[package]]
name = "swc_css"
-version = "0.55.1"
+version = "0.56.0"
dependencies = [
"swc_css_ast",
"swc_css_codegen",
@@ -2804,7 +2804,7 @@ dependencies = [
[[p... | 9 | 39 | 39 |
a8debc17f6082c033d3734a8e2c0cccc598c1d08 | OJ Kwon | 2022-01-25T08:13:39 | feat(plugin): Pass host context to plugins for diagnostics emission (#3359) | diff --git a/crates/swc_common/src/errors/diagnostic.rs b/crates/swc_common/src/errors/diagnostic.rs
index c1e4815e53..e2735b1f1b 100644
--- a/crates/swc_common/src/errors/diagnostic.rs
+++ b/crates/swc_common/src/errors/diagnostic.rs
@@ -18,6 +18,10 @@ use std::fmt;
feature = "diagnostic-serde",
derive(serde... | 11 | 182 | 37 |
afdb168aad9096e4653580a52cc7736915cd2b69 | RiESAEX | 2022-01-24T21:21:06 | fix(es/loader): Add an option to resolve symlinks with `true` as a default (#3340) | diff --git a/crates/dbg-swc/src/reduce_min/deps.rs b/crates/dbg-swc/src/reduce_min/deps.rs
index 81452f9cb6..520541fd72 100644
--- a/crates/dbg-swc/src/reduce_min/deps.rs
+++ b/crates/dbg-swc/src/reduce_min/deps.rs
@@ -20,6 +20,7 @@ pub fn collect_deps(cm: Arc<SourceMap>, working_dir: &Path, entry: &Path) -> Res
... | 7 | 46 | 10 |
29aaac1f15f747ea3f938bcab1d536168e9d36a6 | Austaras | 2022-01-24T20:55:43 | fix(es/compat): Handle nested functions in `private_field` (#3355) | diff --git a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs b/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs
index a66cecc835..0fc310f7e2 100644
--- a/crates/swc_ecma_transforms_compat/src/es2022/class_properties/private_field.rs
+++ b/crates/swc_ecma_tran... | 2 | 57 | 3 |
a635e9f35bb2a718abad56286d7b6fcecdfe4e58 | Donny/강동윤 | 2022-01-24T20:21:27 | chore(ci): Update `thread_local` (#3357) | diff --git a/Cargo.lock b/Cargo.lock
index 4179c69fa0..fe7ffc163b 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3714,9 +3714,9 @@ dependencies = [
[[package]]
name = "thread_local"
-version = "1.1.3"
+version = "1.1.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "8018d24e04c95ac8790... | 1 | 2 | 2 |
d9dc2b99dde69792db4f5a31ffc983f8b04c0bef | Donny/강동윤 | 2022-01-24T13:06:17 | fix(swc): Respect `jsc.experimental.keepImportAssertions` (#3352)
swc:
- Fix `Merge` impl of `JscExperimental`. | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 6f98de854b..43c981c64c 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -985,8 +985,13 @@ pub struct JscExperimental {
impl Merge for JscExperimental {
fn merge(&mut self, from: &Self) {
if self.... | 1 | 6 | 1 |
b2bf38d025064a42c398ab321fc2e69401a3f74b | padorang684 | 2022-01-21T14:10:33 | fix(es/module): Remove `.jsx` file extension (#3334) | diff --git a/crates/swc_ecma_transforms_module/src/path.rs b/crates/swc_ecma_transforms_module/src/path.rs
index 405b2a95b7..d0dd11beda 100644
--- a/crates/swc_ecma_transforms_module/src/path.rs
+++ b/crates/swc_ecma_transforms_module/src/path.rs
@@ -58,7 +58,7 @@ where
let mut p = PathBuf::from(target_pat... | 1 | 1 | 1 |
8a76935ca261579f23519d1e2c3b7849ba75a6e0 | LongYinan | 2022-01-20T10:47:37 | perf(node): Avoid cloning options (#3325) | diff --git a/crates/node/src/transform.rs b/crates/node/src/transform.rs
index 1a8259638c..4cc7b727a2 100644
--- a/crates/node/src/transform.rs
+++ b/crates/node/src/transform.rs
@@ -5,7 +5,7 @@ use crate::{
use anyhow::Context as _;
use napi::{
bindgen_prelude::{AbortSignal, AsyncTask, Buffer},
- Env, Task,
... | 1 | 16 | 10 |
9e636c7e582ff898ca2e374f0b3938dda98a5b67 | Austaras | 2022-01-19T14:11:52 | refactor(es): Add `visit_obj_and_computed` macro (#3304) | diff --git a/crates/swc_bundler/src/bundler/chunk/cjs.rs b/crates/swc_bundler/src/bundler/chunk/cjs.rs
index da38425025..1fe1c710cd 100644
--- a/crates/swc_bundler/src/bundler/chunk/cjs.rs
+++ b/crates/swc_bundler/src/bundler/chunk/cjs.rs
@@ -354,18 +354,4 @@ impl VisitMut for DefaultHandler {
}
}... | 27 | 67 | 455 |
7ba8a838819ae40f54801808a41af3d5334421b6 | OJ Kwon | 2022-01-19T05:01:45 | test(plugin/runner): Pin dependencies for the integration test (#3306) | diff --git a/tests/rust-plugins/swc_internal_plugin/Cargo.lock b/tests/rust-plugins/swc_internal_plugin/Cargo.lock
new file mode 100644
index 0000000000..7a9ff61119
--- /dev/null
+++ b/tests/rust-plugins/swc_internal_plugin/Cargo.lock
@@ -0,0 +1,949 @@
+# This file is automatically @generated by Cargo.
+# It is not int... | 1 | 949 | 0 |
18cd98e54cdd3c651fc12815aa59a6640a1c0dcb | Donny/강동윤 | 2022-01-19T04:24:35 | doc(swc): Document `typescript::strip` (#3305) | diff --git a/crates/swc/src/lib.rs b/crates/swc/src/lib.rs
index 82512be7a8..14202a15db 100644
--- a/crates/swc/src/lib.rs
+++ b/crates/swc/src/lib.rs
@@ -836,6 +836,17 @@ impl Compiler {
/// `custom_after_pass` is applied after swc transforms are applied.
///
/// `program`: If you already parsed `Progra... | 1 | 11 | 0 |
c6ffdc87172e504adff5757ebbb6ec2014136cf1 | OJ Kwon | 2022-01-18T03:26:04 | feat(plugin): Add `PluginError` (#3300) | diff --git a/crates/swc_common/src/plugin.rs b/crates/swc_common/src/plugin.rs
index 7bbad783a5..a357de35f3 100644
--- a/crates/swc_common/src/plugin.rs
+++ b/crates/swc_common/src/plugin.rs
@@ -8,6 +8,34 @@ use crate::{syntax_pos::Mark, SyntaxContext};
use anyhow::Error;
use std::any::type_name;
+#[derive(Debug, C... | 8 | 165 | 51 |
641265b147da9478f5d205ddc0c7c16ed94b8676 | asquared31415 | 2022-01-18T02:29:53 | fix(common): Use `siphasher` directly and upgrade transitive dependencies to avoid UB (#3299) | diff --git a/Cargo.lock b/Cargo.lock
index 73edfcfbbd..eee3313a6c 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2435,9 +2435,9 @@ dependencies = [
[[package]]
name = "siphasher"
-version = "0.3.7"
+version = "0.3.9"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "533494a8f9b724d33625ab... | 5 | 10 | 731 |
d7964dd54717db62bd1b3ba7f7fe981183c1121c | Donny | 2022-01-17T13:42:52 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 8dff6de0ee..73edfcfbbd 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3068,7 +3068,7 @@ dependencies = [
[[package]]
name = "swc_ecma_preset_env"
-version = "0.86.0"
+version = "0.86.1"
dependencies = [
"ahash",
"anyhow",
@@ -3096,7 +3096,7 @@ dependencies = [
[[pack... | 6 | 15 | 15 |
2352920889c217be41dd5d18c2af6088e1cd0473 | Satish Srinivasan | 2022-01-17T06:48:31 | feat(es/compat): Use remove useless source map entries generated by `classes` (#3242) | diff --git a/crates/swc_ecma_transforms_compat/src/es2015/classes/mod.rs b/crates/swc_ecma_transforms_compat/src/es2015/classes/mod.rs
index 7b37295d86..6a895dfbfd 100644
--- a/crates/swc_ecma_transforms_compat/src/es2015/classes/mod.rs
+++ b/crates/swc_ecma_transforms_compat/src/es2015/classes/mod.rs
@@ -416,14 +416,1... | 1 | 28 | 8 |
b76d1da699ab0475d349a0c9d5b06ffdd7a6b48f | RiESAEX | 2022-01-16T14:57:12 | fix(es/transforms): Handle template literals within `jsonify` pass (#3282) | diff --git a/crates/swc_ecma_transforms_optimization/src/json_parse.rs b/crates/swc_ecma_transforms_optimization/src/json_parse.rs
index 2a95bb6f5d..e8aea4e2b7 100644
--- a/crates/swc_ecma_transforms_optimization/src/json_parse.rs
+++ b/crates/swc_ecma_transforms_optimization/src/json_parse.rs
@@ -129,6 +129,13 @@ fn j... | 1 | 28 | 0 |
162c1fe047631c35f8b8105c1a40ad6728e6edff | Niklas Mischkulnig | 2022-01-16T14:31:08 | fix(es/transforms): Remove unsafe `new String("...")` optimization (#3284) | diff --git a/crates/swc_ecma_minifier/src/compress/mod.rs b/crates/swc_ecma_minifier/src/compress/mod.rs
index 6deb260075..821c14b60b 100644
--- a/crates/swc_ecma_minifier/src/compress/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/mod.rs
@@ -68,10 +68,7 @@ where
chain!(
console_remover,
as_f... | 4 | 4 | 52 |
66d1a92635c4e04041af1c106dbda8b4d692ba8a | OJ Kwon | 2022-01-15T05:10:19 | feat(plugin/runner): Free allocated memory on errors (#3270) | diff --git a/crates/swc_plugin_macro/src/lib.rs b/crates/swc_plugin_macro/src/lib.rs
index f102ab040f..28be0b8047 100644
--- a/crates/swc_plugin_macro/src/lib.rs
+++ b/crates/swc_plugin_macro/src/lib.rs
@@ -25,6 +25,8 @@ fn handle_func(func: ItemFn) -> TokenStream {
let ret = quote! {
#func
+ use... | 3 | 117 | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.