Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 8 additions & 34 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@

[build]

rustdocflags = [
"--cfg",
"docsrs",
]
rustflags = [
"-C",
"target-feature=+sse2",
"-Z",
"new-llvm-pass-manager=no",
]
rustdocflags = ["--cfg", "docsrs"]
rustflags = ["-C", "target-feature=+sse2", "-Z", "new-llvm-pass-manager=no"]

[target.aarch64-apple-darwin]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]

[target.aarch64-unknown-linux-gnu]
linker = "aarch64-linux-gnu-gcc"
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]

[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
Expand All @@ -38,29 +24,17 @@ rustflags = [

[target.armv7-unknown-linux-gnueabihf]
linker = "arm-linux-gnueabihf-gcc"
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]

[target.aarch64-linux-android]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]

[target.x86_64-pc-windows-msvc]
linker = "rust-lld"

[target.aarch64-pc-windows-msvc]
linker = "rust-lld"
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]

[target.wasm32-unknown-unknown]
rustflags = [
"-Z",
"new-llvm-pass-manager=no",
]
rustflags = ["-Z", "new-llvm-pass-manager=no"]
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint-staged
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ opt-level = 3
cranelift-codegen = { git = "https://github.com/kdy1/wasmtime", branch = "tls" }
cranelift-entity = { git = "https://github.com/kdy1/wasmtime", branch = "tls" }
# https://github.com/thoren-d/tracing-chrome/pull/6
tracing-chrome = { git = "https://github.com/kwonoj/tracing-chrome", rev="a345d8e" }
tracing-chrome = { git = "https://github.com/kwonoj/tracing-chrome", rev = "a345d8e" }
20 changes: 10 additions & 10 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ conventional_commits = true
filter_unconventional = false
# regex for parsing and grouping commits
commit_parsers = [
{message = "^feat", group = "Features"},
{message = "^fix", group = "Bug Fixes"},
{message = "^doc", group = "Documentation"},
{message = "^perf", group = "Performance"},
{message = "^refactor", group = "Refactor"},
{message = "^style", group = "Styling"},
{message = "^test", group = "Testing"},
{message = "^chore: Publish", skip = true},
{message = "^chore", group = "Miscellaneous Tasks"},
{body = ".*security", group = "Security"},
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore: Publish", skip = true },
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
Expand Down
18 changes: 17 additions & 1 deletion clippy.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
blacklisted-names = ["bool", "char", "str", "f32", "f64", "i8", "i16", "i32", "i64", "u8", "u16", "u32", "u64", "isize", "usize"]
blacklisted-names = [
"bool",
"char",
"str",
"f32",
"f64",
"i8",
"i16",
"i32",
"i64",
"u8",
"u16",
"u32",
"u64",
"isize",
"usize",
]
cognitive-complexity-threshold = 50
msrv = "1.58"
type-complexity-threshold = 25000
2 changes: 1 addition & 1 deletion crates/ast_node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ darling = "0.13"
pmutil = "0.5.1"
proc-macro2 = "1"
quote = "1"
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }

[dependencies.syn]
features = ["derive", "fold", "parsing", "printing", "visit-mut"]
Expand Down
2 changes: 1 addition & 1 deletion crates/enum_kind/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ proc-macro = true
[dependencies]
pmutil = "0.5.1"
proc-macro2 = "1"
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }

[dependencies.syn]
features = ["full", "parsing", "printing", "extra-traits"]
Expand Down
2 changes: 1 addition & 1 deletion crates/fastmem/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ version = "0.1.0"
enable = ["rayon"]

[dependencies]
rayon = {version = "1", optional = true}
rayon = { version = "1", optional = true }
2 changes: 1 addition & 1 deletion crates/from_variant/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ proc-macro = true
[dependencies]
pmutil = "0.5.3"
proc-macro2 = "1"
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }

[dependencies.syn]
features = ["derive", "fold", "parsing", "printing"]
Expand Down
12 changes: 6 additions & 6 deletions crates/jsdoc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ version = "0.63.0"

[dependencies]
nom = "7.1.0"
serde = {version = "1", features = ["derive"]}
swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_common = {version = "0.17.0", path = "../swc_common"}
serde = { version = "1", features = ["derive"] }
swc_atoms = { version = "0.2", path = "../swc_atoms" }
swc_common = { version = "0.17.0", path = "../swc_common" }

[dev-dependencies]
anyhow = "1"
dashmap = "5.1.0"
swc_ecma_ast = {version = "0.70.0", path = "../swc_ecma_ast"}
swc_ecma_parser = {version = "0.94.0", path = "../swc_ecma_parser"}
testing = {version = "0.19.0", path = "../testing"}
swc_ecma_ast = { version = "0.70.0", path = "../swc_ecma_ast" }
swc_ecma_parser = { version = "0.94.0", path = "../swc_ecma_parser" }
testing = { version = "0.19.0", path = "../testing" }
47 changes: 27 additions & 20 deletions crates/node/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,30 +18,37 @@ swc_v1 = ["swc_node_bundler/swc_v1"]
swc_v2 = ["swc_node_bundler/swc_v2"]

[build-dependencies]
napi-build = {version = "1"}
napi-build = { version = "1" }

[dependencies]
anyhow = "1"
backtrace = "0.3"
napi = {version = "2", default-features = false, features = ["napi3", "serde-json"]}
napi-derive = {version = "2", default-features = false, features = ["type-def"]}
node_macro_deps = {path = "../node_macro_deps"}
napi = { version = "2", default-features = false, features = [
"napi3",
"serde-json",
] }
napi-derive = { version = "2", default-features = false, features = [
"type-def",
] }
node_macro_deps = { path = "../node_macro_deps" }
path-clean = "0.1"
serde = {version = "1", features = ["derive"]}
serde_json = {version = "1", features = ["unbounded_depth"]}
swc = {path = "../swc", features = ["concurrent", "node"]}
swc_atoms = {version = "0.2.4", path = "../swc_atoms"}
swc_bundler = {path = "../swc_bundler"}
swc_common = {path = "../swc_common", features = ["sourcemap"]}
swc_ecma_ast = {path = "../swc_ecma_ast"}
swc_ecma_lints = {path = "../swc_ecma_lints", features = ["non_critical_lints"]}
swc_ecma_loader = {path = "../swc_ecma_loader"}
swc_ecma_parser = {path = "../swc_ecma_parser"}
swc_node_base = {path = "../swc_node_base"}
swc_node_bundler = {path = "../swc_node_bundler"}
tracing = {version = "0.1.32", features = ["release_max_level_info"]}
serde = { version = "1", features = ["derive"] }
serde_json = { version = "1", features = ["unbounded_depth"] }
swc = { path = "../swc", features = ["concurrent", "node"] }
swc_atoms = { version = "0.2.4", path = "../swc_atoms" }
swc_bundler = { path = "../swc_bundler" }
swc_common = { path = "../swc_common", features = ["sourcemap"] }
swc_ecma_ast = { path = "../swc_ecma_ast" }
swc_ecma_lints = { path = "../swc_ecma_lints", features = [
"non_critical_lints",
] }
swc_ecma_loader = { path = "../swc_ecma_loader" }
swc_ecma_parser = { path = "../swc_ecma_parser" }
swc_node_base = { path = "../swc_node_base" }
swc_node_bundler = { path = "../swc_node_bundler" }
tracing = { version = "0.1.32", features = ["release_max_level_info"] }
tracing-chrome = "0.4.0"
tracing-futures = "0.2.5"
tracing-subscriber = {version = "0.3.9", features = ["env-filter"]}
wasmer = {version = "2.2.0", optional = true, default-features = false}
wasmer-wasi = {version = "2.2.0", optional = true, default-features = false}
tracing-subscriber = { version = "0.3.9", features = ["env-filter"] }
wasmer = { version = "2.2.0", optional = true, default-features = false }
wasmer-wasi = { version = "2.2.0", optional = true, default-features = false }
6 changes: 3 additions & 3 deletions crates/preset_env_base/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ ahash = "0.7.4"
anyhow = "1"
browserslist-rs = "=0.9.0"
dashmap = "5.1.0"
from_variant = {version = "0.1.3", path = "../from_variant"}
from_variant = { version = "0.1.3", path = "../from_variant" }
once_cell = "1.10.0"
semver = {version = "1.0.4", features = ["serde"]}
serde = {version = "1", features = ["derive"]}
semver = { version = "1.0.4", features = ["serde"] }
serde = { version = "1", features = ["derive"] }
st-map = "0.1.2"
2 changes: 1 addition & 1 deletion crates/string_enum/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ proc-macro = true
pmutil = "0.5.1"
proc-macro2 = "1"
quote = "1"
swc_macros_common = {version = "0.3.2", path = "../swc_macros_common"}
swc_macros_common = { version = "0.3.2", path = "../swc_macros_common" }

[dependencies.syn]
features = ["full", "parsing", "printing", "extra-traits"]
Expand Down
70 changes: 39 additions & 31 deletions crates/swc/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,54 +27,60 @@ concurrent = [
]
debug = ["swc_ecma_visit/debug"]
node = ["napi", "napi-derive"]
plugin = [
"swc_plugin_runner",
]
plugin = ["swc_plugin_runner"]

[dependencies]
ahash = "0.7.4"
anyhow = "1"
base64 = "0.13.0"
dashmap = "5.1.0"
either = "1"
indexmap = {version = "1", features = ["serde"]}
indexmap = { version = "1", features = ["serde"] }
lru = "0.7.1"
once_cell = "1.10.0"
parking_lot = "0.12.0"
pathdiff = "0.2.0"
regex = "1"
serde = {version = "1", features = ["derive"]}
serde = { version = "1", features = ["derive"] }
serde_json = "1"
sourcemap = "6"
swc_atoms = {version = "0.2", path = "../swc_atoms"}
swc_cached = {version = "0.1.0", path = "../swc_cached"}
swc_common = {version = "0.17.0", path = "../swc_common", features = ["sourcemap", "concurrent", "parking_lot"]}
swc_ecma_ast = {version = "0.70.0", path = "../swc_ecma_ast"}
swc_ecma_codegen = {version = "0.96.0", path = "../swc_ecma_codegen"}
swc_ecma_ext_transforms = {version = "0.59.0", path = "../swc_ecma_ext_transforms"}
swc_ecma_lints = {version = "0.24.0", path = "../swc_ecma_lints"}
swc_ecma_loader = {version = "0.29.0", path = "../swc_ecma_loader", features = ["cache", "node", "tsc"]}
swc_ecma_minifier = {version = "0.91.0", path = "../swc_ecma_minifier"}
swc_ecma_parser = {version = "0.94.0", path = "../swc_ecma_parser"}
swc_ecma_preset_env = {version = "0.108.0", path = "../swc_ecma_preset_env"}
swc_ecma_transforms = {version = "0.133.0", path = "../swc_ecma_transforms", features = [
swc_atoms = { version = "0.2", path = "../swc_atoms" }
swc_cached = { version = "0.1.0", path = "../swc_cached" }
swc_common = { version = "0.17.0", path = "../swc_common", features = [
"sourcemap",
"concurrent",
"parking_lot",
] }
swc_ecma_ast = { version = "0.70.0", path = "../swc_ecma_ast" }
swc_ecma_codegen = { version = "0.96.0", path = "../swc_ecma_codegen" }
swc_ecma_ext_transforms = { version = "0.59.0", path = "../swc_ecma_ext_transforms" }
swc_ecma_lints = { version = "0.24.0", path = "../swc_ecma_lints" }
swc_ecma_loader = { version = "0.29.0", path = "../swc_ecma_loader", features = [
"cache",
"node",
"tsc",
] }
swc_ecma_minifier = { version = "0.91.0", path = "../swc_ecma_minifier" }
swc_ecma_parser = { version = "0.94.0", path = "../swc_ecma_parser" }
swc_ecma_preset_env = { version = "0.108.0", path = "../swc_ecma_preset_env" }
swc_ecma_transforms = { version = "0.133.0", path = "../swc_ecma_transforms", features = [
"compat",
"module",
"optimization",
"proposal",
"react",
"typescript",
]}
swc_ecma_transforms_base = {version = "0.68.0", path = "../swc_ecma_transforms_base"}
swc_ecma_transforms_compat = {version = "0.81.0", path = "../swc_ecma_transforms_compat"}
swc_ecma_transforms_optimization = {version = "0.103.0", path = "../swc_ecma_transforms_optimization"}
swc_ecma_utils = {version = "0.73.0", path = "../swc_ecma_utils"}
swc_ecma_visit = {version = "0.56.0", path = "../swc_ecma_visit"}
swc_ecmascript = {version = "0.134.0", path = "../swc_ecmascript"}
swc_error_reporters = {version = "0.1.0", path = "../swc_error_reporters"}
swc_node_comments = {version = "0.4.0", path = "../swc_node_comments"}
swc_plugin_runner = {version = "0.43.0", path = "../swc_plugin_runner", optional = true}
swc_visit = {version = "0.3.0", path = "../swc_visit"}
] }
swc_ecma_transforms_base = { version = "0.68.0", path = "../swc_ecma_transforms_base" }
swc_ecma_transforms_compat = { version = "0.81.0", path = "../swc_ecma_transforms_compat" }
swc_ecma_transforms_optimization = { version = "0.103.0", path = "../swc_ecma_transforms_optimization" }
swc_ecma_utils = { version = "0.73.0", path = "../swc_ecma_utils" }
swc_ecma_visit = { version = "0.56.0", path = "../swc_ecma_visit" }
swc_ecmascript = { version = "0.134.0", path = "../swc_ecmascript" }
swc_error_reporters = { version = "0.1.0", path = "../swc_error_reporters" }
swc_node_comments = { version = "0.4.0", path = "../swc_node_comments" }
swc_plugin_runner = { version = "0.43.0", path = "../swc_plugin_runner", optional = true }
swc_visit = { version = "0.3.0", path = "../swc_visit" }
tracing = "0.1.32"

[dependencies.napi-derive]
Expand All @@ -91,9 +97,11 @@ version = "2.0.0"

[dev-dependencies]
rayon = "1"
swc_ecma_lints = {version = "0.24.0", path = "../swc_ecma_lints", features = ["non_critical_lints"]}
swc_node_base = {version = "0.5.0", path = "../swc_node_base"}
testing = {version = "0.19.0", path = "../testing"}
swc_ecma_lints = { version = "0.24.0", path = "../swc_ecma_lints", features = [
"non_critical_lints",
] }
swc_node_base = { version = "0.5.0", path = "../swc_node_base" }
testing = { version = "0.19.0", path = "../testing" }
walkdir = "2"

[[example]]
Expand Down
Loading