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 |
|---|---|---|---|---|---|---|---|
0b267edea2fb7b64a40b6a220e3bb391173e0516 | Fy | 2022-10-24T01:22:04 | feat(es): Expose `unresolved_mark` (#6236) | diff --git a/crates/swc/src/config/mod.rs b/crates/swc/src/config/mod.rs
index 0c13fe7aa7..60a8036f6f 100644
--- a/crates/swc/src/config/mod.rs
+++ b/crates/swc/src/config/mod.rs
@@ -179,6 +179,9 @@ pub struct Options {
#[serde(skip_deserializing, default)]
pub top_level_mark: Option<Mark>,
+ #[serde(ski... | 1 | 4 | 1 |
daf36a635a64773ce4956cd7d61eab7c0a4f3b7b | SWC Bot | 2022-10-21T03:53:20 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 994431b5f3..6d14e7f0a1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.60"
+version = "0.58.61"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
283549c677c3da89c4ff010d4b340d996c445bef | LongYinan | 2022-10-20T08:56:25 | chore(deps): Update jemallocator (#6216) | diff --git a/Cargo.lock b/Cargo.lock
index db8551889f..7debdb5e90 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4546,9 +4546,9 @@ dependencies = [
[[package]]
name = "tikv-jemalloc-sys"
-version = "0.4.3+5.2.1-patched.2"
+version = "0.5.2+5.3.0-patched"
source = "registry+https://github.com/rust-lang/crates.io-inde... | 2 | 5 | 5 |
ba5d272ae111b3da765c842bfd100013833c1eac | Alexander Akait | 2022-10-20T02:54:22 | perf(html/parser): Improve performance a bit (#6213) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index 5792fc6c83..e8049b4645 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -4146,11 +4146,7 @@ where
&& !is_last_semicolon
... | 2 | 4 | 12 |
e9ac7a73963df586d577d3bb374a93695c68a90e | Donny/κ°λμ€ | 2022-10-20T01:46:44 | chore(ci): Fix auto-publish action (#6214) | diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml
index b25836445f..174e4a538a 100644
--- a/crates/swc_plugin_runner/Cargo.toml
+++ b/crates/swc_plugin_runner/Cargo.toml
@@ -64,7 +64,7 @@ swc_atoms = { version = "0.4.23", path = '../swc_atoms' }
swc_ecma_loader = { version = ... | 1 | 1 | 1 |
0e2de3069df7d5e718562a030d8d22208353fb71 | Austaras | 2022-10-20T00:20:43 | fix(es/compat): Fix super method call in loose mode (#6207) | diff --git a/crates/swc_ecma_transforms_classes/src/super_field.rs b/crates/swc_ecma_transforms_classes/src/super_field.rs
index 0d49fa7575..ffa8aa2095 100644
--- a/crates/swc_ecma_transforms_classes/src/super_field.rs
+++ b/crates/swc_ecma_transforms_classes/src/super_field.rs
@@ -353,18 +353,39 @@ impl<'a> SuperField... | 3 | 70 | 22 |
1b0dad1e845b2a648103383be6d952e5997d0387 | Donny/κ°λμ€ | 2022-10-19T23:43:16 | fix(html/ast): Fix compilation (#6211) | diff --git a/crates/swc_html_ast/src/base.rs b/crates/swc_html_ast/src/base.rs
index 2209109c06..c613165e49 100644
--- a/crates/swc_html_ast/src/base.rs
+++ b/crates/swc_html_ast/src/base.rs
@@ -63,7 +63,6 @@ pub struct DocumentType {
pub public_id: Option<JsWord>,
#[cfg_attr(feature = "rkyv", with(swc_atoms:... | 2 | 0 | 12 |
420ba32e8c3b4f8ea34e3b17c82af31e2934059b | Alexander Akait | 2022-10-19T23:32:22 | perf(html/ast): Use `Atom` for `raw` (#6210) | diff --git a/crates/swc_html_ast/src/base.rs b/crates/swc_html_ast/src/base.rs
index 1dd4b3e997..2209109c06 100644
--- a/crates/swc_html_ast/src/base.rs
+++ b/crates/swc_html_ast/src/base.rs
@@ -1,6 +1,6 @@
use is_macro::Is;
use string_enum::StringEnum;
-use swc_atoms::JsWord;
+use swc_atoms::{Atom, JsWord};
use swc... | 6 | 170 | 141 |
8ab10f661b55f6440d740efb4c7477f92f70c8c4 | OJ Kwon | 2022-10-19T15:51:00 | build(bindings): Update mimalloc (#6208) | diff --git a/Cargo.lock b/Cargo.lock
index 1bca10f6ec..a98642fb29 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1614,9 +1614,9 @@ dependencies = [
[[package]]
name = "mimalloc-rust"
-version = "0.1.5"
+version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "bcc30df9dfdb5bb6cb... | 2 | 12 | 12 |
99ea28674af1c1bbaa104089b7f7bd36356df208 | Alexander Akait | 2022-10-19T15:10:57 | feat(html/ast): Add `raw` to comment tokens (#6202) | diff --git a/crates/swc_html_ast/src/token.rs b/crates/swc_html_ast/src/token.rs
index 95ecbfa5fd..048b48dcdd 100644
--- a/crates/swc_html_ast/src/token.rs
+++ b/crates/swc_html_ast/src/token.rs
@@ -72,7 +72,7 @@ pub enum Token {
#[cfg_attr(feature = "rkyv", with(swc_atoms::EncodeJsWord))]
data: JsWor... | 4 | 8 | 8 |
6e2e2ada4eab95a75554eecc8fab423bb8c94033 | Alexander Akait | 2022-10-18T01:41:59 | refactor(css/parser): Improve project structure (#6110) | diff --git a/crates/swc_css_parser/src/parser/at_rule.rs b/crates/swc_css_parser/src/parser/at_rules/mod.rs
similarity index 99%
rename from crates/swc_css_parser/src/parser/at_rule.rs
rename to crates/swc_css_parser/src/parser/at_rules/mod.rs
index b8130122ad..3ea7917559 100644
--- a/crates/swc_css_parser/src/parser/a... | 7 | 5 | 10 |
30f3de2fe2240c75c6e4e56fba19370b4a8b3658 | SWC Bot | 2022-10-17T11:34:48 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 0269a19faa..f70b7c9869 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -776,7 +776,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.41"
+version = "0.58.42"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
d13a3973603e8d7666be9ced5f616bfecfc29efa | Donny/κ°λμ€ | 2022-10-17T11:17:29 | build(es/plugin): Fix Wasm build (#6181) | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index c56c919a0e..70f7354a5e 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -15,6 +15,7 @@ use swc_common::{
#[cfg(not(target_arch = "wasm32"))]
use wasmer::{BaseTunables, CpuF... | 1 | 1 | 0 |
ea4ae3dfbcd3546ed5d734c1c7c3c8cd091cce6a | Donny/κ°λμ€ | 2022-10-17T11:06:08 | build(es/plugin): Fix Wasm build, really (#6180) | diff --git a/crates/swc_plugin_runner/src/cache.rs b/crates/swc_plugin_runner/src/cache.rs
index b079fed195..c56c919a0e 100644
--- a/crates/swc_plugin_runner/src/cache.rs
+++ b/crates/swc_plugin_runner/src/cache.rs
@@ -12,8 +12,9 @@ use swc_common::{
collections::AHashMap,
sync::{Lazy, OnceCell},
};
-use was... | 1 | 3 | 2 |
7c40e44d3f434035651941753a1a5aac19737446 | Donny/κ°λμ€ | 2022-10-17T10:30:28 | build(es/plugin): Fix Wasm build (#6179) | diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml
index c7e81d8e64..213f07c1c8 100644
--- a/crates/swc_plugin_runner/Cargo.toml
+++ b/crates/swc_plugin_runner/Cargo.toml
@@ -49,14 +49,14 @@ swc_common = { version = "0.29.8", path = "../swc_common", features = [
swc_ecma_ast = { ver... | 2 | 12 | 6 |
cb8f3500b2eac333eb126ab3844271d344e58a35 | Donny/κ°λμ€ | 2022-10-17T09:36:26 | fix(es/plugin): Fix plugin on non `x86_64` (#6178) | diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml
index 614e7115a7..db1b4f4e97 100644
--- a/crates/swc_plugin_runner/Cargo.toml
+++ b/crates/swc_plugin_runner/Cargo.toml
@@ -51,8 +51,8 @@ swc_plugin_proxy = { version = "0.22.11", path = "../swc_plugin_proxy" }
tracing ... | 2 | 5 | 2 |
ec5782e4a09b88f986acb2d6b9283a587e595ffb | Donny/κ°λμ€ | 2022-10-17T00:26:50 | chore: Publish crates | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 29b59c7b77..16a4e9c260 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -2528,7 +2528,7 @@ dependencies = [
[[package]]
name = "swc_cli"
-version = "0.91.6"
+version = "0.91.7"
dependencies = [
"anyhow",
"atty",
diff --git a/bindings/swc... | 2 | 2 | 2 |
2e153e5555a8d03bc04da0cbcc849aa1f05a16e3 | Donny/κ°λμ€ | 2022-10-15T12:52:34 | fix(es/minifier): Don't create a numeric literal with `NaN` value (#6166) | 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 d77fe755fb..eae73ffe8a 100644
--- a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs
+++ b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.... | 1 | 14 | 5 |
65029793a6915c11156dcc5c0265d3e2df41e2b4 | Fy | 2022-10-15T03:03:39 | fix(es/quote): Fix handling of template literals (#6157) | diff --git a/crates/swc_ecma_quote_macros/src/ast/expr.rs b/crates/swc_ecma_quote_macros/src/ast/expr.rs
index 5ac395da59..f1651d8fe5 100644
--- a/crates/swc_ecma_quote_macros/src/ast/expr.rs
+++ b/crates/swc_ecma_quote_macros/src/ast/expr.rs
@@ -63,7 +63,7 @@ impl_struct!(
]
);
impl_struct!(ClassExpr, [ident, c... | 1 | 1 | 1 |
6a42e511e8ba8d8d5f7de83df64883edd00a7ab3 | Donny/κ°λμ€ | 2022-10-14T10:39:36 | feat(es/utils): Add indexed API to the parallel helper (#6149) | diff --git a/crates/swc_ecma_utils/src/parallel.rs b/crates/swc_ecma_utils/src/parallel.rs
index 926b93e3ac..2a9bd0a1fb 100644
--- a/crates/swc_ecma_utils/src/parallel.rs
+++ b/crates/swc_ecma_utils/src/parallel.rs
@@ -28,10 +28,13 @@ pub trait Parallel: swc_common::sync::Send + swc_common::sync::Sync {
#[cfg(feature ... | 1 | 38 | 13 |
1196d60182e6fcc7b9ba35150f9f5ea4f4ea0881 | Donny/κ°λμ€ | 2022-10-14T01:40:50 | feat(css/modules): Add a lifetime to config parameter (#6144) | diff --git a/crates/swc_css_modules/src/lib.rs b/crates/swc_css_modules/src/lib.rs
index 4a03a14967..a4d7964fa5 100644
--- a/crates/swc_css_modules/src/lib.rs
+++ b/crates/swc_css_modules/src/lib.rs
@@ -52,7 +52,7 @@ pub struct TransformResult {
}
/// Returns a map from local name to exported name.
-pub fn compile(... | 1 | 1 | 1 |
5c4a2c69b476da80766c70f9617acc53e6ce1a29 | SWC Bot | 2022-10-14T01:00:35 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 052c91a6a9..dc179157f6 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -742,7 +742,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.29"
+version = "0.58.30"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
9c8ec0ea560ba97abcb864d482202bd8173a4e80 | Donny/κ°λμ€ | 2022-10-13T06:09:44 | perf(atoms): Use thin pointer for `Atom` (#6135)
**Description:**
This PR changes the size of `Atom` type to `usize` from 2 * usize`.
**Related issue:**
- https://github.com/swc-project/swc/issues/4946. | diff --git a/crates/swc_atoms/build.rs b/crates/swc_atoms/build.rs
index d48f0d4f8e..029e979396 100644
--- a/crates/swc_atoms/build.rs
+++ b/crates/swc_atoms/build.rs
@@ -14,6 +14,19 @@ fn main() {
fn gen(mac_name: &str, type_name: &str, atoms: &[&str]) {
string_cache_codegen::AtomType::new(type_name, &format!("{... | 2 | 73 | 23 |
3b05c0f86bd26b2e71f127da2758bb9295a92ad9 | SWC Bot | 2022-10-12T03:43:14 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index eb6199904f..0e11c2fac2 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -742,7 +742,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.19"
+version = "0.58.20"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc... | 2 | 2 | 2 |
27bda13591a57995708f60bdcb3cbe50b9bb42ec | IWANABETHATGUY | 2022-10-11T11:20:14 | build(cargo): Remove unused deps (#6117) | diff --git a/Cargo.lock b/Cargo.lock
index 78029bfd4d..b7e561d305 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1917,15 +1917,6 @@ dependencies = [
"vcpkg",
]
-[[package]]
-name = "ordered-float"
-version = "2.10.0"
-source = "registry+https://github.com/rust-lang/crates.io-index"
-checksum = "7940cf2ca942593318d07... | 12 | 46 | 76 |
8549c4780775ef329b7ea35e56a91de6c1fc9577 | Donny/κ°λμ€ | 2022-10-11T10:43:09 | feat(dbg-swc): Remove comments from the output of `terser` (#6119)
**Description:**
This PR removes comments by parsing and printing using swc APIs because the comments disturb looking at diffs. | diff --git a/crates/dbg-swc/src/util/minifier.rs b/crates/dbg-swc/src/util/minifier.rs
index 990f1ba7dc..429689d605 100644
--- a/crates/dbg-swc/src/util/minifier.rs
+++ b/crates/dbg-swc/src/util/minifier.rs
@@ -5,13 +5,13 @@ use std::{
};
use anyhow::{bail, Context, Result};
-use swc_common::SourceMap;
+use swc_com... | 1 | 12 | 3 |
5fd0e97c15c2f2c4feaacaf74984cca7571e4340 | Donny/κ°λμ€ | 2022-10-11T02:36:56 | fix(swc_core): Reexport `swc_css_compat` correctly (#6114) | diff --git a/crates/swc_core/src/lib.rs b/crates/swc_core/src/lib.rs
index 09cab0a870..ecc0896073 100644
--- a/crates/swc_core/src/lib.rs
+++ b/crates/swc_core/src/lib.rs
@@ -187,7 +187,7 @@ pub mod css {
#[cfg(feature = "css_compat")]
#[cfg_attr(docsrs, doc(cfg(feature = "css_compat")))]
pub mod compat ... | 1 | 1 | 1 |
16dc746cd3a1b6e03903d23a9ba78d0c65128710 | Donny/κ°λμ€ | 2022-10-10T09:05:43 | feat(swc_core): Reexport `swc_css_compat` (#6102) | diff --git a/Cargo.lock b/Cargo.lock
index 0ca33b317d..2353cc3000 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3156,6 +3156,7 @@ dependencies = [
"swc_common",
"swc_css_ast",
"swc_css_codegen",
+ "swc_css_compat",
"swc_css_minifier",
"swc_css_parser",
"swc_css_prefixer",
diff --git a/crates/swc_core/Cargo.t... | 3 | 12 | 6 |
3c6cdbc61cba7dcca38251413cc9033487677dd4 | Donny/κ°λμ€ | 2022-10-10T05:38:17 | feat(es/minifier): Enable `reduce_funcs` by default (#6097) | diff --git a/crates/swc_ecma_minifier/src/option/mod.rs b/crates/swc_ecma_minifier/src/option/mod.rs
index ce1db4c66c..1637c775a2 100644
--- a/crates/swc_ecma_minifier/src/option/mod.rs
+++ b/crates/swc_ecma_minifier/src/option/mod.rs
@@ -257,7 +257,7 @@ pub struct CompressOptions {
#[serde(alias = "pure_funcs")]
... | 2 | 2 | 3 |
ca67d5244dc30c47bf70266f75af2fd3231fd83d | Anthony Morris | 2022-10-10T05:02:02 | doc(es/parser): Change file extension in TypeScript example (#6094) | diff --git a/crates/swc_ecma_parser/examples/typescript.rs b/crates/swc_ecma_parser/examples/typescript.rs
index f98aa77237..ad9c1e6189 100644
--- a/crates/swc_ecma_parser/examples/typescript.rs
+++ b/crates/swc_ecma_parser/examples/typescript.rs
@@ -12,11 +12,11 @@ fn main() {
// Real usage
// let fm = cm
... | 1 | 3 | 3 |
516320009a50061ac1d019d8f2474f7ac393cb76 | SWC Bot | 2022-10-08T04:41:25 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 36003dbd22..c9af5da939 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -742,7 +742,7 @@ dependencies = [
[[package]]
name = "dbg-swc"
-version = "0.58.3"
+version = "0.58.4"
dependencies = [
"anyhow",
"clap 3.1.0",
diff --git a/crates/dbg-swc/Cargo.toml b/crates/dbg-swc/C... | 2 | 2 | 2 |
d0418ebe5bc61ae64dc617a308c07b2e4eee4a31 | Donny/κ°λμ€ | 2022-10-08T04:05:57 | doc(es/minifier): Document assumptions (#6085) | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index 4a701ceaa8..fde4f07998 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -1,4 +1,18 @@
-//! Javascript minifier implemented in rust.
+//! JavaScript minifier implemented in rust.
+//!... | 1 | 15 | 1 |
4cde4f9acef8658b7c24be354fe66cb2c86bc556 | Will Binns-Smith | 2022-10-08T00:51:18 | feat(swc_core): Expose `swc_ecma_preset_env` (#6083) | diff --git a/Cargo.lock b/Cargo.lock
index 19c65dc168..5643e71021 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3166,6 +3166,7 @@ dependencies = [
"swc_ecma_loader",
"swc_ecma_minifier",
"swc_ecma_parser",
+ "swc_ecma_preset_env",
"swc_ecma_quote_macros",
"swc_ecma_transforms_base",
"swc_ecma_transforms_modu... | 3 | 11 | 0 |
e6b1dd47315775f68694305905a958c9b66b5a8d | Donny/κ°λμ€ | 2022-10-07T05:52:22 | feat(es/testing): Add an option to test sourcemap (#6079) | diff --git a/Cargo.lock b/Cargo.lock
index 5acd02b3d8..4e7e9945f1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3860,10 +3860,12 @@ version = "0.113.13"
dependencies = [
"ansi_term",
"anyhow",
+ "base64 0.13.0",
"hex",
"serde",
"serde_json",
"sha-1",
+ "sourcemap",
"swc_common",
"swc_ecma_ast",
"swc_e... | 17 | 161 | 62 |
047da86baa76198fe8e1b750ffd623348d4f8773 | IWANABETHATGUY | 2022-10-06T11:36:08 | chore(common): Make `Mark::root` const fn (#6072) | diff --git a/crates/swc_common/src/syntax_pos/hygiene.rs b/crates/swc_common/src/syntax_pos/hygiene.rs
index 6b8d3dbc36..ef4708f03d 100644
--- a/crates/swc_common/src/syntax_pos/hygiene.rs
+++ b/crates/swc_common/src/syntax_pos/hygiene.rs
@@ -124,7 +124,7 @@ impl Mark {
/// The mark of the theoretical expansion th... | 1 | 1 | 1 |
fff4b9ce6550b1db3c0b9086d199090e7211f609 | OJ Kwon | 2022-10-06T01:36:13 | build(cargo): Dedup `indexmap` with known version (#6060) | diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml
index 1bedcb4cf4..2b2cc0d079 100644
--- a/crates/swc/Cargo.toml
+++ b/crates/swc/Cargo.toml
@@ -48,7 +48,7 @@ anyhow = "1"
base64 = "0.13.0"
dashmap = "5.1.0"
either = "1"
-indexmap = { version = "1", features = ["serde"] }
+indexmap = { version = "1.6.1", f... | 8 | 9 | 9 |
d8fc0298e2f7ca031faee0e06c531030fc72d39d | Donny/κ°λμ€ | 2022-10-05T12:36:15 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index cac8a5d050..8419ef1e16 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3643,7 +3643,7 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
-version = "0.111.11"
+version = "0.111.12"
dependencies = [
"better_scoped_tls",
"bitflags",
diff --git a/crates/swc_e... | 2 | 35 | 35 |
e3b55e4bcf2bc12bbcc0fb2cb65e0931622d5dcb | Donny/κ°λμ€ | 2022-10-05T12:22:28 | fix(es/minifier): Fix optimization of numeric keys (#6052)
**Description:**
We should not optimize if the key starts with `0`.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/6051. | diff --git a/crates/swc_ecma_minifier/src/compress/pure/properties.rs b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
index fa552c60e4..2a7bad6b56 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/properties.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/properties.rs
@@ -95,14 +95,16 @@ impl Pure... | 2 | 20 | 8 |
5ea2d81aa3cd7ce46d92582fc88e50676c54c202 | IWANABETHATGUY | 2022-10-02T15:32:22 | perf(common): Split the mutex for the hygiene system (#6019) | diff --git a/crates/swc_common/src/syntax_pos.rs b/crates/swc_common/src/syntax_pos.rs
index 79d7d24dc6..a9bb8bbb6f 100644
--- a/crates/swc_common/src/syntax_pos.rs
+++ b/crates/swc_common/src/syntax_pos.rs
@@ -16,6 +16,7 @@ use rkyv_latest as rkyv;
use serde::{Deserialize, Serialize};
use url::Url;
+use self::hygi... | 2 | 34 | 21 |
8b31b65059a3b62fd1d12be57e0b62f62e499354 | Donny/κ°λμ€ | 2022-09-30T07:12:56 | fix(es/codegen): Improve performance of debug build (#6003) | diff --git a/Cargo.toml b/Cargo.toml
index 867fce3e2c..33535a5634 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,6 +43,4 @@ opt-level = 3
opt-level = 3
[workspace.dependencies]
-serde = "1.0.145"
-swc_core = { version = "0.28.10", path = "./crates/swc_core" }
-swc_common = { version = "0.29.3", path = "./crates/sw... | 6 | 46 | 46 |
3204ac3e0c2d04d3e9269655ba3d4dddf3ae74af | OJ Kwon | 2022-09-30T06:48:23 | build(cargo): Use workspace deps for internal pkg (#6001) | diff --git a/Cargo.toml b/Cargo.toml
index 33535a5634..867fce3e2c 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -43,4 +43,6 @@ opt-level = 3
opt-level = 3
[workspace.dependencies]
-serde = "1.0.145"
\ No newline at end of file
+serde = "1.0.145"
+swc_core = { version = "0.28.10", path = "./crates/swc_core" }
+swc_com... | 5 | 42 | 42 |
a716b40d05a57065e2f5dbaad5f6a17dceee7860 | Alexander Akait | 2022-09-30T02:11:47 | chore(html/minifier): Typo (#5995) | diff --git a/crates/swc_html_minifier/src/lib.rs b/crates/swc_html_minifier/src/lib.rs
index 93a9d9cfe8..a363ceca3e 100644
--- a/crates/swc_html_minifier/src/lib.rs
+++ b/crates/swc_html_minifier/src/lib.rs
@@ -1218,7 +1218,7 @@ impl Minifier<'_> {
self.is_preserved_comment(&comment.data)
... | 2 | 2 | 2 |
af8236d689e29980ef1bc8d7d05ed61e37649b28 | Donny/κ°λμ€ | 2022-09-29T06:50:21 | fix(es/minifier): Remove print | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
index 9749d16a30..46915d76c9 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/inline.rs
@@ -570,7 +570,6 @@ where
... | 1 | 0 | 1 |
6c08971a53b8ba87b920173539c1165640e7f2a3 | Alexander Akait | 2022-09-29T02:58:09 | perf(html/minifier): Improve performance (#5983) | diff --git a/Cargo.lock b/Cargo.lock
index 695b89d5e0..482d19de19 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -4090,6 +4090,7 @@ dependencies = [
"once_cell",
"serde",
"serde_json",
+ "swc_atoms",
"swc_common",
]
diff --git a/crates/swc_html_ast/src/base.rs b/crates/swc_html_ast/src/base.rs
index 5388775c4c.... | 6 | 98 | 49 |
0067f719dd0a072ef43e51698f159506287d7f35 | Donny/κ°λμ€ | 2022-09-29T00:05:13 | fix(es/minifier): Don't panic on jsx or ts (#5984) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs b/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs
index d5b8ed13f3..7a3fa8b58e 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/sequences.rs
@@ -1284,7 +1284,... | 1 | 1 | 1 |
f7128d20f08206a3d4e313af075a2cb28dfdc58b | Donny/κ°λμ€ | 2022-09-28T12:06:43 | chore(ci): Fix benchmark action (#5978) | diff --git a/crates/swc/benches/bugs.rs b/crates/swc/benches/bugs.rs
index 03bfaf09e1..68956b6cfe 100644
--- a/crates/swc/benches/bugs.rs
+++ b/crates/swc/benches/bugs.rs
@@ -5,6 +5,7 @@ use std::{io::stderr, path::Path};
use criterion::{criterion_group, criterion_main, Bencher, Criterion};
use swc::config::{Config, ... | 3 | 61 | 49 |
e37bb551015b68b108569015a03dc00477f621ee | Donny/κ°λμ€ | 2022-09-28T09:19:30 | perf(es/minifier): Optimize `MultiReplacer` (#5977)
**Description:**
This PR splits the `MultiReplacer` into two variants. The first one is the cloning version, and this is parallel. The other one is the non-cloning version, which is not parallel. | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
index 35e70d1109..e981c93e36 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/iife.rs
@@ -9,10 +9,7 @@ use swc_ecma_utils::... | 3 | 147 | 107 |
b219fa2f015f39e1f3da17ade777a4bc92b6eabe | Donny/κ°λμ€ | 2022-09-25T02:18:53 | feat(dbg-swc): Add a size debugger for next.js (#5945) | diff --git a/Cargo.lock b/Cargo.lock
index 1cb7db2ff4..36a85db5af 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -369,6 +369,20 @@ dependencies = [
"syn",
]
+[[package]]
+name = "console"
+version = "0.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "89eab4d20ce20cea182308bca13088f... | 10 | 371 | 21 |
10cdbed05e3d0f2430a21a7f3c6a185f56ea0861 | Jason | 2022-09-21T08:21:04 | fix(css/parser): Fix infinite loop about `@import` and `layer` (#5919) | diff --git a/crates/swc_css_parser/src/parser/at_rule.rs b/crates/swc_css_parser/src/parser/at_rule.rs
index fab2001ce9..e004e5796a 100644
--- a/crates/swc_css_parser/src/parser/at_rule.rs
+++ b/crates/swc_css_parser/src/parser/at_rule.rs
@@ -1868,6 +1868,8 @@ where
let start = self.input.cur_span().lo;
... | 1 | 7 | 0 |
72429d88018bd325af2e552c5d2bc7b255ea600d | Shu Ding | 2022-09-21T07:37:08 | feat(swc_core): Expose tty feature of `swc_common` as `common_tty` (#5920)
**Description:**
This PR adds a `common_tty` feature to swc_core which enables `tty-emitter` for `swc_common` to make the colored terminal output available. | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index 5f37068786..e4819784dc 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -82,6 +82,8 @@ common_sourcemap = ["__common", "swc_common/sourcemap"]
# - can we consolidate them?
common_concurrent = ["__common", "swc_common... | 1 | 2 | 0 |
fe40d8312b7153de1e334d552e9f6bcafc9cc161 | Donny/κ°λμ€ | 2022-09-21T07:23:10 | test(es): Accept arguments (#5916)
**Description:**
This PR adds a way to provide arguments to `exec_node_js`. | diff --git a/crates/swc/tests/exec.rs b/crates/swc/tests/exec.rs
index 601e36bce7..a76d1b2d7d 100644
--- a/crates/swc/tests/exec.rs
+++ b/crates/swc/tests/exec.rs
@@ -427,6 +427,7 @@ fn stdout_of(code: &str, module_type: NodeModuleType) -> Result<String, Error> {
JsExecOptions {
cache: true,
... | 5 | 16 | 7 |
6d1e5c77f1d18765a689bfd5cbf3d03597285093 | Donny/κ°λμ€ | 2022-09-21T00:59:44 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 90545dbab1..0917c7cd3a 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3295,7 +3295,7 @@ dependencies = [
[[package]]
name = "swc_css_visit"
-version = "0.112.0"
+version = "0.112.1"
dependencies = [
"serde",
"swc_atoms",
@@ -3840,7 +3840,7 @@ dependencies = [
[[packa... | 7 | 17 | 17 |
6bbd3f4c14eb243b697dc12593ada1b196a0cad8 | Donny/κ°λμ€ | 2022-09-20T04:29:08 | perf(es/minifier): Make more passes parallel (#5906)
**Description:**
We only unwrap parenthesis in precompress optimizer, so I refactored it. Also, as it's embarrassingly parallel, I parallelized it. | diff --git a/crates/swc_ecma_minifier/src/lib.rs b/crates/swc_ecma_minifier/src/lib.rs
index a34ac33a07..85c8d6d256 100644
--- a/crates/swc_ecma_minifier/src/lib.rs
+++ b/crates/swc_ecma_minifier/src/lib.rs
@@ -25,7 +25,6 @@
use once_cell::sync::Lazy;
use swc_common::{comments::Comments, pass::Repeat, sync::Lrc, Sour... | 3 | 221 | 267 |
ccca6d0a8866b9e34e1778e176ed47d19e30be78 | ε»εΊιΎ | 2022-09-19T13:34:06 | fix(cli): Add missing comma (#5902) | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index 55d96448e2..51ff965311 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -233,7 +233,7 @@ build-wasm32 = "build --target wasm32-unknown-unknown"
&src_path... | 1 | 1 | 1 |
5645e810df36e7954dc1249634e1a92e34f8172c | Alexander Akait | 2022-09-17T00:10:08 | perf(html/parser): Improve performance (#5884) | diff --git a/crates/swc_html_parser/src/lexer/mod.rs b/crates/swc_html_parser/src/lexer/mod.rs
index 94f119a831..6a1f4ba676 100644
--- a/crates/swc_html_parser/src/lexer/mod.rs
+++ b/crates/swc_html_parser/src/lexer/mod.rs
@@ -1,4 +1,4 @@
-use std::{char::REPLACEMENT_CHARACTER, collections::VecDeque, mem::take};
+use s... | 1 | 157 | 121 |
2d4d04d06beec5c88e8515c95298a0bf5d961d8c | OJ Kwon | 2022-09-16T23:07:11 | feat(es/plugin): Enable plugin for bytecheck flags (#5885)
**Description:**
Fixes oversight to enabling plugin when plugin-bytecheck is enabled. | diff --git a/crates/swc/Cargo.toml b/crates/swc/Cargo.toml
index 45a440c31e..c0a7fbc366 100644
--- a/crates/swc/Cargo.toml
+++ b/crates/swc/Cargo.toml
@@ -29,7 +29,10 @@ default = ["es3"]
es3 = []
node = ["napi", "napi-derive"]
plugin = ["swc_plugin_runner/rkyv-impl", "swc_plugin_proxy/plugin-rt"]
-plugin-bytecheck ... | 3 | 42 | 15 |
1ba151fe9540a8595f9ac9f286917fdec9db5264 | OJ Kwon | 2022-09-16T02:43:59 | feat(swc_core): Enable `bytecheck` for plugin (#5878) | diff --git a/bindings/Cargo.lock b/bindings/Cargo.lock
index 753eaf9836..c082f7cb8a 100644
--- a/bindings/Cargo.lock
+++ b/bindings/Cargo.lock
@@ -87,6 +87,8 @@ checksum = "8da52d66c7071e2e3fa2a1e5c6d088fec47b593032b254f5e980de8ea54454d6"
[[package]]
name = "ast_node"
version = "0.8.5"
+source = "registry+https://gi... | 3 | 66 | 260 |
73c48a8e6eb3d002ca0c575d253f32ae1aa6e5ea | Will Binns-Smith | 2022-09-16T01:04:13 | feat(preset-env/base): Implement more traits for `BrowserData` and `Version` (#5879)
**Description:**
This derives additional common traits for these public structs. | diff --git a/crates/preset_env_base/src/lib.rs b/crates/preset_env_base/src/lib.rs
index 07f09ecd22..135fcd534f 100644
--- a/crates/preset_env_base/src/lib.rs
+++ b/crates/preset_env_base/src/lib.rs
@@ -4,7 +4,7 @@
//! something usable.
use anyhow::Error;
-use serde::Deserialize;
+use serde::{Deserialize, Serialize... | 2 | 4 | 4 |
c3fa96b21b1545be62fdfd359ca5762a1bd4a473 | Donny/κ°λμ€ | 2022-09-15T14:45:33 | fix(es/minifier): Fix unicode handling (#5875) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/strings.rs b/crates/swc_ecma_minifier/src/compress/pure/strings.rs
index 7d422ece71..3c9568ba86 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/strings.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/strings.rs
@@ -200,6 +200,7 @@ impl Pure<'_> {
... | 3 | 26 | 2 |
355bb41a1f0c9920c16d620f3b8099e910cedbad | Donny/κ°λμ€ | 2022-09-15T08:49:23 | build(bindings): Remove cargo patch (#5874) | diff --git a/bindings/Cargo.toml b/bindings/Cargo.toml
index 62fb230faa..bb114e37f5 100644
--- a/bindings/Cargo.toml
+++ b/bindings/Cargo.toml
@@ -12,95 +12,3 @@ members = ["binding_core_node", "binding_core_wasm", "swc_cli"]
# Strip debug symbols
strip = "symbols"
-
-[patch.crates-io]
-ast_node ... | 1 | 0 | 92 |
dfb01bde71c73ea398b7e3d8428a3c3015366d4e | Donny/κ°λμ€ | 2022-09-14T15:05:59 | refactor: Refactor code using clippy (#5863)
**Description:**
I temporarily updated rustc to use newer version of `cargo clippy`. | diff --git a/crates/dbg-swc/src/minify/reduce.rs b/crates/dbg-swc/src/minify/reduce.rs
index edcf130578..87739b0ad4 100644
--- a/crates/dbg-swc/src/minify/reduce.rs
+++ b/crates/dbg-swc/src/minify/reduce.rs
@@ -57,14 +57,14 @@ impl ReduceCommand {
let m = parse_js(fm)?;
let code = print_js(cm, &m.modu... | 21 | 29 | 31 |
c0da2e998ada947563de83ba19feed789f1a1aea | OJ Kwon | 2022-09-14T02:59:36 | fix(swc_core): Fix reexport of `testing` (#5848) | diff --git a/crates/swc_core/src/lib.rs b/crates/swc_core/src/lib.rs
index 1658214b77..509b326c5f 100644
--- a/crates/swc_core/src/lib.rs
+++ b/crates/swc_core/src/lib.rs
@@ -221,7 +221,7 @@ pub mod cached {
#[cfg(feature = "testing")]
#[cfg_attr(docsrs, doc(cfg(feature = "testing")))]
pub mod testing {
- pub use... | 1 | 1 | 1 |
fe3072b12a32cbae3b4f9e904add8ad2ab6cc7f3 | Donny/κ°λμ€ | 2022-09-13T06:45:33 | perf(es/minifier): Reduce type sizes (#5843) | diff --git a/crates/swc_ecma_minifier/src/compress/mod.rs b/crates/swc_ecma_minifier/src/compress/mod.rs
index 46803b4eb8..402402b832 100644
--- a/crates/swc_ecma_minifier/src/compress/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/mod.rs
@@ -9,18 +9,14 @@ use std::{
#[cfg(feature = "pretty_assertions")]
use pr... | 5 | 23 | 202 |
b6cf9750ecda6d4a7b1f1c9c7c26a801dc40c213 | Donny/κ°λμ€ | 2022-09-13T06:02:44 | perf(es/minifier): Make the expression simplifier more parallel (#5841)
**Description:**
It was not parallel enough. | 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 cf2c590c1a..991a166036 100644
--- a/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.rs
+++ b/crates/swc_ecma_transforms_optimization/src/simplify/expr/mod.... | 1 | 12 | 8 |
b691fec7b7949c4fff016e53b32b7f001403773a | Alexander Akait | 2022-09-13T03:06:08 | perf(html/minifier): Improve performance (#5840) | diff --git a/crates/swc_html_minifier/src/lib.rs b/crates/swc_html_minifier/src/lib.rs
index 09e0b3c3e3..593c5b331b 100644
--- a/crates/swc_html_minifier/src/lib.rs
+++ b/crates/swc_html_minifier/src/lib.rs
@@ -893,7 +893,7 @@ impl Minifier<'_> {
fn get_next_displayed_node<'a>(
&self,
- children:... | 1 | 281 | 295 |
856d741ec77f46eb04be8489a3a18340269dbe4d | OJ Kwon | 2022-09-12T22:31:26 | feat(swc_core): Export testing utilities (#5839)
**Description:**
This PR exports general testing utilities from swc_core. | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index 7632c49254..b566131f42 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -150,6 +150,9 @@ css_utils = ["__css", "swc_css_utils"]
css_visit = ["__css", "swc_css_visit"]
css_visit_path = ["__css", "swc_css_vis... | 2 | 13 | 3 |
10484edbf768dcf96a99960a53cfb5968750b0c2 | Donny/κ°λμ€ | 2022-09-12T05:14:09 | perf(es/parser): Optimize memory layout (#5833)
**Description:**
I boxed `BigIntValue` in the `Token` type to make `TokenAndSpan` smaller and made the parser use `Vec` instead of `SmallVec` for token contexts. | diff --git a/crates/swc_ecma_parser/src/lexer/number.rs b/crates/swc_ecma_parser/src/lexer/number.rs
index 8d2ce26471..c999f73c1b 100644
--- a/crates/swc_ecma_parser/src/lexer/number.rs
+++ b/crates/swc_ecma_parser/src/lexer/number.rs
@@ -33,7 +33,7 @@ impl<'a, I: Input> Lexer<'a, I> {
pub(super) fn read_number(
... | 6 | 12 | 24 |
24004270d949f0e8fb87151b1fce342fe39360ef | Donny/κ°λμ€ | 2022-09-12T04:31:17 | perf(atoms): Reduce size of `Atom` (#5831)
**Description:**
This patch reduces the memory footprint. | diff --git a/Cargo.lock b/Cargo.lock
index 629205d60a..93fbed777f 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2989,6 +2989,7 @@ dependencies = [
"serde",
"string_cache",
"string_cache_codegen",
+ "triomphe",
]
[[package]]
@@ -4673,6 +4674,16 @@ dependencies = [
"tracing-log",
]
+[[package]]
+name = "tri... | 3 | 26 | 4 |
969ecdee3d63b2f4b9ffc7f854d25ceb5bff32f4 | ε»εΊιΎ | 2022-09-12T00:25:43 | fix(cli): Update the plugin template (#5824) | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index adaa48f31a..55d96448e2 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -231,12 +231,12 @@ build-wasm32 = "build --target wasm32-unknown-unknown"
create_dir_... | 1 | 3 | 3 |
4fa5a2778b3fd8627f52f3040041bdcb9b86467c | Donny/κ°λμ€ | 2022-09-11T07:16:45 | perf(css/minifier): Merge more passes into the compressor (#5821) | diff --git a/crates/swc_css_minifier/src/compress/mod.rs b/crates/swc_css_minifier/src/compress/mod.rs
index 9ef511782d..fa6063cc43 100644
--- a/crates/swc_css_minifier/src/compress/mod.rs
+++ b/crates/swc_css_minifier/src/compress/mod.rs
@@ -1,7 +1,3 @@
pub mod alpha_value;
-pub mod angle;
pub mod at_rule;
-pub mod ... | 9 | 245 | 180 |
f523502f4cf03b238bd7b859930f344169302907 | Donny/κ°λμ€ | 2022-09-11T06:24:02 | perf(css/minifier): Merge passes (#5820)
**Description:**
A single visitor is better for performance. | diff --git a/crates/swc_css_minifier/src/compress/length.rs b/crates/swc_css_minifier/src/compress/length.rs
index 2579ef9b0a..b22f20dfa1 100644
--- a/crates/swc_css_minifier/src/compress/length.rs
+++ b/crates/swc_css_minifier/src/compress/length.rs
@@ -13,7 +13,7 @@ struct CompressLength {
}
impl CompressLength {... | 12 | 238 | 239 |
2819be5aac9d341bfb57335b5c9f96c267f9883d | OJ Kwon | 2022-09-11T02:04:15 | feat(swc_core): Export `swc_common/sourcemap` (#5818) | diff --git a/crates/swc_core/Cargo.toml b/crates/swc_core/Cargo.toml
index 6a741ffd90..93248aa111 100644
--- a/crates/swc_core/Cargo.toml
+++ b/crates/swc_core/Cargo.toml
@@ -76,7 +76,8 @@ base_node = [
# refer binding_core_wasm for example: it has plugin_transform_host feature, but
# it has to be a feature to be ena... | 1 | 2 | 1 |
704ea3d48d8c98b7a3f7400621ef93d041c27860 | Donny/κ°λμ€ | 2022-09-10T17:11:41 | perf(es/minifier): Optimize usage of `IndexSet` (#5814) | diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
index 531a5d993d..3affe1c0ec 100644
--- a/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
+++ b/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
@... | 1 | 1 | 1 |
96cc888ef21299f6bcfdd21d576879857c3062a5 | Donny/κ°λμ€ | 2022-09-10T08:32:35 | perf(css/parser): Use ascii operations (#5808)
**Description:**
We don't need Unicode handling in these cases. | diff --git a/crates/swc_css_parser/src/parser/at_rule.rs b/crates/swc_css_parser/src/parser/at_rule.rs
index ff1243ea4c..f9625fa449 100644
--- a/crates/swc_css_parser/src/parser/at_rule.rs
+++ b/crates/swc_css_parser/src/parser/at_rule.rs
@@ -23,7 +23,7 @@ where
unreachable!()
}
}... | 2 | 6 | 5 |
b96eb1ead8eedfeb8c3f392bf89ca5c037f1efcb | Donny/κ°λμ€ | 2022-09-10T06:36:15 | perf(css/codegen): Skip useless operations if not required (#5802)
**Description:**
The column is used only for sourcemap, so we can skip `chars().count()` if we are not generating source maps. | diff --git a/crates/swc_css_codegen/src/writer/basic.rs b/crates/swc_css_codegen/src/writer/basic.rs
index 22027ad25f..1983d11929 100644
--- a/crates/swc_css_codegen/src/writer/basic.rs
+++ b/crates/swc_css_codegen/src/writer/basic.rs
@@ -113,7 +113,9 @@ where
fn raw_write(&mut self, data: &str) -> Result {
... | 1 | 9 | 3 |
49942ca773d6fe6f44efa92625e274d01f9cdce0 | Donny/κ°λμ€ | 2022-09-10T05:45:23 | perf(es/codegen): Skip useless operations if not required (#5803)
**Description:**
The column is used only for sourcemap, so we can skip `chars().count()` if we are not generating source maps. | diff --git a/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs b/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
index e20fcc96a1..9637a27b65 100644
--- a/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
+++ b/crates/swc_ecma_codegen/src/text_writer/basic_impl.rs
@@ -56,7 +56,9 @@ impl<'a, W: Write> JsWr... | 1 | 18 | 12 |
2bbc9bd73b6a1437b4a31d865c3eb83e44fa88c3 | Donny/κ°λμ€ | 2022-09-10T03:50:54 | refactor(es/plugin): Fix lints (#5801) | diff --git a/crates/swc_plugin_proxy/src/lib.rs b/crates/swc_plugin_proxy/src/lib.rs
index f96ef0e120..c37bf5289a 100644
--- a/crates/swc_plugin_proxy/src/lib.rs
+++ b/crates/swc_plugin_proxy/src/lib.rs
@@ -1,3 +1,5 @@
+#![cfg_attr(not(feature = "__rkyv"), allow(warnings))]
+
mod comments;
mod memory_interop;
mod me... | 4 | 8 | 0 |
21fbcb9621d88310ac297504235bd607d64b701a | Donny/κ°λμ€ | 2022-09-09T05:51:45 | refactor(es/renamer): Rename `PARALLEL` to `MANGLE` (#5790)
**Description:**
Actually, performance issue comes from collision, not parallelism. So I renamed the associated constant. | diff --git a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs
index 886e3e6d9a..1078afb00c 100644
--- a/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs
+++ b/crates/swc_ecma_minifier/src/pass/mangle_names/mod.rs
@@ -414,7 +414,7 @@ struct ManglingRename... | 4 | 16 | 15 |
7deadd86679f820c113d92fe8b034086be2736ff | magic-akari | 2022-09-08T04:24:44 | feat(es/lexer): Recover from git merge conflict (#5775) | diff --git a/crates/swc_common/src/input.rs b/crates/swc_common/src/input.rs
index bbca64b87f..eea14a0626 100644
--- a/crates/swc_common/src/input.rs
+++ b/crates/swc_common/src/input.rs
@@ -67,6 +67,20 @@ impl<'a> Input for StringInput<'a> {
self.iter.clone().nth(2).map(|i| i.1)
}
+ #[inline]
+ f... | 6 | 207 | 0 |
c2d10503db724e1b2349d5df9211489c1aa9507a | Donny/κ°λμ€ | 2022-09-07T05:28:36 | perf(es/minifier): Make passes more parallel (#5773) | diff --git a/crates/swc_ecma_minifier/src/compress/pure/mod.rs b/crates/swc_ecma_minifier/src/compress/pure/mod.rs
index 707f9e0f51..b31129b458 100644
--- a/crates/swc_ecma_minifier/src/compress/pure/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/pure/mod.rs
@@ -431,16 +431,20 @@ impl VisitMut for Pure<'_> {
... | 4 | 23 | 7 |
27e92542808048a12985ce15ee6ee65d44d5ac6c | Donny/κ°λμ€ | 2022-09-06T05:36:53 | perf(es/minifier): Make `MultiReplacer` single-pass (#5761) | diff --git a/crates/swc_ecma_minifier/src/compress/optimize/util.rs b/crates/swc_ecma_minifier/src/compress/optimize/util.rs
index bc5d8be53e..1e53965924 100644
--- a/crates/swc_ecma_minifier/src/compress/optimize/util.rs
+++ b/crates/swc_ecma_minifier/src/compress/optimize/util.rs
@@ -150,7 +150,6 @@ impl VisitMut for... | 1 | 11 | 20 |
15e2357d1d7086f3a48def71c38acb7052f8d742 | Daiki Nishikawa | 2022-09-06T01:33:40 | chore: Typo (#5758) | diff --git a/bindings/swc_cli/src/commands/plugin.rs b/bindings/swc_cli/src/commands/plugin.rs
index 497977db98..adaa48f31a 100644
--- a/bindings/swc_cli/src/commands/plugin.rs
+++ b/bindings/swc_cli/src/commands/plugin.rs
@@ -267,7 +267,7 @@ pub fn process_transform(program: Program, _metadata: TransformPluginProgramM... | 1 | 1 | 1 |
6e2002a148f6d0660b17c4e617049972ee0fb3bf | Donny/κ°λμ€ | 2022-09-05T09:25:10 | perf(es/minifier): Improve codegen of name mangler (#5751) | diff --git a/crates/swc_ecma_codegen/src/text_writer.rs b/crates/swc_ecma_codegen/src/text_writer.rs
index 37abab63ec..f70e519e2c 100644
--- a/crates/swc_ecma_codegen/src/text_writer.rs
+++ b/crates/swc_ecma_codegen/src/text_writer.rs
@@ -137,3 +137,97 @@ where
(**self).commit_pending_semi()
}
}
+
+impl<... | 2 | 210 | 8 |
8789184d447eb09e1b0dddc6156ac150d4cbf0d7 | Donny/κ°λμ€ | 2022-09-05T07:05:44 | perf(es/minifier): Cache the list of bindings for DCE (#5750) | diff --git a/crates/swc_ecma_minifier/src/compress/mod.rs b/crates/swc_ecma_minifier/src/compress/mod.rs
index d23b8e8d08..46803b4eb8 100644
--- a/crates/swc_ecma_minifier/src/compress/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/mod.rs
@@ -386,19 +386,19 @@ where
if self.options.unused {
le... | 2 | 26 | 17 |
08b2aea2b0d1d0bec707394d9f5cf6d2713431a9 | Donny/κ°λμ€ | 2022-09-05T04:35:40 | perf(es/minifier): Use efficient logic for entry tracking in DCE (#5749) | diff --git a/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs b/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
index b1906378bb..24f771c646 100644
--- a/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
+++ b/crates/swc_ecma_transforms_optimization/src/simplify/dce/mod.rs
@... | 1 | 11 | 2 |
1202762f30db43c972c1367f85e30e69baaf0c59 | OJ Kwon | 2022-09-05T03:46:07 | chore(swc_core): Update deps (#5748) | diff --git a/Cargo.lock b/Cargo.lock
index 409ea9c1f1..c2383b9942 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2923,7 +2923,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.224.1"
+version = "0.224.2"
dependencies = [
"ahash",
"ansi_term",
@@ -2993,7 +2993,7 @@ dependencies = [
[[package]]
name... | 11 | 23 | 23 |
83dbe6cdc3252af50954938582379268a375e6b6 | OJ Kwon | 2022-09-05T02:31:49 | fix(swc_core): Update deps (#5746) | diff --git a/Cargo.lock b/Cargo.lock
index f059e778fa..409ea9c1f1 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3109,7 +3109,7 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "0.20.5"
+version = "0.20.6"
dependencies = [
"binding_macros",
"once_cell",
@@ -3691,7 +3691,7 @@ dependencies = [
[[pac... | 4 | 8 | 8 |
96b2e17a8fdb5e500eb1e6a10ffa16d4d0c98957 | Donny/κ°λμ€ | 2022-09-04T16:21:26 | perf(es/minifier): Pre-allocate in analyzer (#5743) | diff --git a/crates/swc_ecma_minifier/src/analyzer/storage/normal.rs b/crates/swc_ecma_minifier/src/analyzer/storage/normal.rs
index 0fc5da5c79..d66c79222a 100644
--- a/crates/swc_ecma_minifier/src/analyzer/storage/normal.rs
+++ b/crates/swc_ecma_minifier/src/analyzer/storage/normal.rs
@@ -23,6 +23,8 @@ impl Storage fo... | 1 | 4 | 0 |
2baa640e98bd8bac2995157c42ff6489b73d85cf | Donny/κ°λμ€ | 2022-09-04T15:34:46 | perf(es/minifier): Make passes more parallel (#5741) | diff --git a/crates/swc_ecma_transforms_base/src/rename/ops.rs b/crates/swc_ecma_transforms_base/src/rename/ops.rs
index b93c76688b..ed71c260d3 100644
--- a/crates/swc_ecma_transforms_base/src/rename/ops.rs
+++ b/crates/swc_ecma_transforms_base/src/rename/ops.rs
@@ -562,6 +562,12 @@ impl<'a> VisitMut for Operator<'a> {... | 3 | 16 | 0 |
64f42bec27c4c7cf60cb6d6043fec93e479fb9b8 | Donny/κ°λμ€ | 2022-09-04T14:54:36 | refactor(es/utils): Move utilities for parallel processing (#5742) | diff --git a/Cargo.lock b/Cargo.lock
index 52abc075dc..1aa276f203 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3587,7 +3587,6 @@ dependencies = [
"better_scoped_tls",
"bitflags",
"criterion",
- "num_cpus",
"once_cell",
"phf",
"rayon",
@@ -3822,6 +3821,7 @@ name = "swc_ecma_utils"
version = "0.101.0"
depen... | 6 | 218 | 212 |
4e989807d71aa9a6c019c6a5a01acbbee9ec6020 | Donny/κ°λμ€ | 2022-09-04T13:18:05 | chore(es/minifier): Fix example (#5739) | diff --git a/Cargo.toml b/Cargo.toml
index 1374aeb983..8fb74282a5 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -32,7 +32,7 @@ members = [
[profile.bench]
debug = true
-lto = true
+# lto = true
# Without this, printing diff consumes more than a minute.
diff --git a/crates/swc_ecma_minifier/examples/minify-all.rs... | 2 | 58 | 51 |
74b3d2170cf241fba7be6d61d68361683d3ff73c | Donny/κ°λμ€ | 2022-09-04T08:27:19 | chore: Publish crates | diff --git a/Cargo.lock b/Cargo.lock
index 91d51de161..171298a2fc 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2923,7 +2923,7 @@ dependencies = [
[[package]]
name = "swc"
-version = "0.224.0"
+version = "0.224.1"
dependencies = [
"ahash",
"ansi_term",
@@ -3109,7 +3109,7 @@ dependencies = [
[[package]]
name... | 6 | 17 | 17 |
5936bd2b5e6034de09ebcf13543861f8cd53a581 | Donny/κ°λμ€ | 2022-09-04T05:36:48 | perf(es/minifier): Make rename operator parallel (#5732) | diff --git a/crates/swc_ecma_transforms_base/src/perf.rs b/crates/swc_ecma_transforms_base/src/perf.rs
index 8004ebef30..96acd5e86c 100644
--- a/crates/swc_ecma_transforms_base/src/perf.rs
+++ b/crates/swc_ecma_transforms_base/src/perf.rs
@@ -280,3 +280,140 @@ where
nodes.move_map(|n| n.fold_with(self))
}... | 2 | 218 | 4 |
8963db0a1d46184a7e0f8ea0663cbe8a2972418a | Donny/κ°λμ€ | 2022-09-04T04:49:30 | perf(es/minifier): Skip useless analysis if not required (#5733) | diff --git a/crates/swc_ecma_minifier/src/compress/mod.rs b/crates/swc_ecma_minifier/src/compress/mod.rs
index c2d793e051..d23b8e8d08 100644
--- a/crates/swc_ecma_minifier/src/compress/mod.rs
+++ b/crates/swc_ecma_minifier/src/compress/mod.rs
@@ -223,7 +223,7 @@ where
thread::current().name()
);
... | 1 | 1 | 1 |
aad50dcc6e890fdd26a7b3208ebc81e4d4fe2975 | OJ Kwon | 2022-09-04T03:19:42 | refactor(swc_core): Directly export `swc_ecma_transforms_base` (#5731) | diff --git a/Cargo.lock b/Cargo.lock
index e06554dcbe..cd5827d6a5 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3109,7 +3109,7 @@ dependencies = [
[[package]]
name = "swc_core"
-version = "0.20.3"
+version = "0.20.4"
dependencies = [
"binding_macros",
"once_cell",
@@ -3131,7 +3131,7 @@ dependencies = [
"swc_e... | 3 | 10 | 6 |
9c43713109a070e23bb8ed655f149b49de6cf321 | OJ Kwon | 2022-09-03T16:01:45 | fix(swc_core): Bump `swc_ecma_quote_macros` (#5723) | diff --git a/Cargo.lock b/Cargo.lock
index 018cc91c8f..6911b43425 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3527,7 +3527,7 @@ dependencies = [
[[package]]
name = "swc_ecma_quote_macros"
-version = "0.29.0"
+version = "0.29.1"
dependencies = [
"anyhow",
"pmutil",
diff --git a/crates/swc_core/Cargo.toml b/cra... | 3 | 3 | 3 |
a3a72779096b4f0afbbe94320e53feb48e7fe45d | magic-akari | 2022-09-03T15:08:13 | fix(es/lexer): Drop `ClassExpr` context in object properties (#5729) | diff --git a/crates/swc_ecma_parser/src/lexer/state.rs b/crates/swc_ecma_parser/src/lexer/state.rs
index 0f67c78e76..a736eac82e 100644
--- a/crates/swc_ecma_parser/src/lexer/state.rs
+++ b/crates/swc_ecma_parser/src/lexer/state.rs
@@ -479,9 +479,18 @@ impl State {
false
}
- ... | 3 | 48 | 3 |
31c516a9228ebe304cd461f7e139f13a8519b43c | Donny/κ°λμ€ | 2022-09-03T06:43:50 | perf(es/minifier): Optimize precompress optimizer (#5727) | diff --git a/crates/swc_ecma_minifier/src/pass/precompress.rs b/crates/swc_ecma_minifier/src/pass/precompress.rs
index 9ae61c7dc1..d43ae4a1fd 100644
--- a/crates/swc_ecma_minifier/src/pass/precompress.rs
+++ b/crates/swc_ecma_minifier/src/pass/precompress.rs
@@ -1,12 +1,15 @@
use swc_atoms::js_word;
use swc_common::u... | 1 | 22 | 40 |
25c96b4b7aa9a75892b1ae49a65e836229465195 | Donny/κ°λμ€ | 2022-09-03T05:33:09 | perf(es/minifier): Use faster hash algorithm for DCE (#5725) | diff --git a/Cargo.lock b/Cargo.lock
index f1348bd599..998a685842 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -3716,6 +3716,7 @@ dependencies = [
"swc_ecma_transforms_typescript",
"swc_ecma_utils",
"swc_ecma_visit",
+ "swc_fast_graph",
"testing",
"tracing",
]
diff --git a/crates/swc_ecma_transforms_optimizat... | 4 | 50 | 3 |
d6e67b5944131e429d341f565c52fc3237a81bb7 | OJ Kwon | 2022-09-03T05:29:02 | feat(atoms): Introduce bytecheck-ed rkyv version (#5686) | diff --git a/Cargo.lock b/Cargo.lock
index c6178ba289..f73aec3818 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -2429,6 +2429,20 @@ dependencies = [
"seahash",
]
+[[package]]
+name = "rkyv-test"
+version = "0.7.38-test.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c920f62b6e022ed... | 55 | 108 | 73 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.