Skip to content

Commit

Permalink
fix(common): Fix sourcemap (#2457)
Browse files Browse the repository at this point in the history
swc_common:
 - Include the index to the name in `mappings` of a sourcemap.

swc:
 - Fix handling of `inputSourceMap`.
  • Loading branch information
kdy1 authored Oct 18, 2021
1 parent 675c0e7 commit 9ba68c6
Show file tree
Hide file tree
Showing 62 changed files with 682 additions and 358 deletions.
74 changes: 37 additions & 37 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 19 additions & 19 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ edition = "2018"
license = "Apache-2.0/MIT"
name = "swc"
repository = "https://github.com/swc-project/swc.git"
version = "0.71.1"
version = "0.72.0"

[lib]
name = "swc"
Expand Down Expand Up @@ -58,36 +58,36 @@ serde = {version = "1", features = ["derive"]}
serde_json = "1"
sourcemap = "6"
swc_atoms = {version = "0.2", path = "./atoms"}
swc_bundler = {version = "0.72.1", path = "./bundler"}
swc_common = {version = "0.13.5", path = "./common", features = ["sourcemap", "concurrent"]}
swc_ecma_ast = {version = "0.54.5", path = "./ecmascript/ast"}
swc_ecma_codegen = {version = "0.75.3", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.32.1", path = "./ecmascript/ext-transforms"}
swc_ecma_loader = {version = "0.21.1", path = "./ecmascript/loader", features = ["lru", "node", "tsc"]}
swc_ecma_minifier = {version = "0.41.1", path = "./ecmascript/minifier"}
swc_ecma_parser = {version = "0.73.15", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.56.1", path = "./ecmascript/preset-env"}
swc_ecma_transforms = {version = "0.85.1", path = "./ecmascript/transforms", features = [
swc_bundler = {version = "0.73.0", path = "./bundler"}
swc_common = {version = "0.14.0", path = "./common", features = ["sourcemap", "concurrent"]}
swc_ecma_ast = {version = "0.55.0", path = "./ecmascript/ast"}
swc_ecma_codegen = {version = "0.76.0", path = "./ecmascript/codegen"}
swc_ecma_ext_transforms = {version = "0.33.0", path = "./ecmascript/ext-transforms"}
swc_ecma_loader = {version = "0.22.0", path = "./ecmascript/loader", features = ["lru", "node", "tsc"]}
swc_ecma_minifier = {version = "0.42.0", path = "./ecmascript/minifier"}
swc_ecma_parser = {version = "0.74.0", path = "./ecmascript/parser"}
swc_ecma_preset_env = {version = "0.57.0", path = "./ecmascript/preset-env"}
swc_ecma_transforms = {version = "0.86.0", path = "./ecmascript/transforms", features = [
"compat",
"module",
"optimization",
"proposal",
"react",
"typescript",
]}
swc_ecma_transforms_base = {version = "0.38.3", path = "./ecmascript/transforms/base"}
swc_ecma_transforms_compat = {version = "0.43.4", path = "./ecmascript/transforms/compat"}
swc_ecma_transforms_optimization = {version = "0.55.1", path = "./ecmascript/transforms/optimization"}
swc_ecma_utils = {version = "0.47.2", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.40.1", path = "./ecmascript/visit"}
swc_ecmascript = {version = "0.77.1", path = "./ecmascript"}
swc_ecma_transforms_base = {version = "0.39.0", path = "./ecmascript/transforms/base"}
swc_ecma_transforms_compat = {version = "0.44.0", path = "./ecmascript/transforms/compat"}
swc_ecma_transforms_optimization = {version = "0.56.0", path = "./ecmascript/transforms/optimization"}
swc_ecma_utils = {version = "0.48.0", path = "./ecmascript/utils"}
swc_ecma_visit = {version = "0.41.0", path = "./ecmascript/visit"}
swc_ecmascript = {version = "0.78.0", path = "./ecmascript"}
swc_visit = {version = "0.2.3", path = "./visit"}
tracing = "0.1.28"

[dev-dependencies]
rayon = "1"
swc_node_base = {version = "0.4.0", path = "./node/base"}
testing = {version = "0.14.0", path = "./testing"}
swc_node_base = {version = "0.5.0", path = "./node/base"}
testing = {version = "0.15.0", path = "./testing"}
walkdir = "2"

[[example]]
Expand Down
Loading

0 comments on commit 9ba68c6

Please sign in to comment.