diff options
| author | David Sherret <dsherret@users.noreply.github.com> | 2022-03-22 09:19:53 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-22 09:19:53 -0400 |
| commit | 49012cbc337589089697c2c6ce4708538441d968 (patch) | |
| tree | e72075d895cf1acbf8a687fb26b96b2303a0f0a9 /cli | |
| parent | 12d28dffc6c8d08e6620751e55d8a382c66443a2 (diff) | |
feat: upgrade to swc_ecmascript 0.137.0 (#14067)
Diffstat (limited to 'cli')
| -rw-r--r-- | cli/Cargo.toml | 14 | ||||
| -rw-r--r-- | cli/emit.rs | 3 |
2 files changed, 8 insertions, 9 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index 065885034..ce79f83d2 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -45,11 +45,11 @@ winapi = "=0.3.9" winres = "=0.1.11" [dependencies] -deno_ast = { version = "0.12.0", features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "transpiling", "typescript", "view", "visit"] } +deno_ast = { version = "0.13.0", features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "transpiling", "typescript", "view", "visit"] } deno_core = { version = "0.124.0", path = "../core" } -deno_doc = "0.32.0" -deno_graph = "0.24.0" -deno_lint = { version = "0.26.0", features = ["docs"] } +deno_doc = "0.33.0" +deno_graph = "0.25.0" +deno_lint = { version = "0.28.0", features = ["docs"] } deno_runtime = { version = "0.50.0", path = "../runtime" } deno_task_shell = "0.1.9" @@ -64,10 +64,10 @@ data-url = "=0.1.1" dissimilar = "=1.0.2" dprint-plugin-json = "=0.14.1" dprint-plugin-markdown = "=0.12.2" -dprint-plugin-typescript = "=0.64.3" +dprint-plugin-typescript = "=0.65.1" encoding_rs = "=0.8.29" env_logger = "=0.8.4" -eszip = "=0.17.0" +eszip = "=0.18.0" fancy-regex = "=0.7.1" http = "=0.2.4" import_map = "=0.9.0" @@ -78,7 +78,7 @@ lspower = "=1.4.0" node_resolver = "=0.1.1" notify = "=5.0.0-pre.12" num-format = "=0.4.0" -once_cell = "=1.9.0" +once_cell = "=1.10.0" percent-encoding = "=2.1.0" pin-project = "=1.0.8" rand = { version = "=0.8.4", features = ["small_rng"] } diff --git a/cli/emit.rs b/cli/emit.rs index 2d1a431dc..42d6c98b8 100644 --- a/cli/emit.rs +++ b/cli/emit.rs @@ -743,9 +743,8 @@ pub(crate) fn bundle( if options.emit_ignore_directives { // write leading comments in bundled file use swc::codegen::text_writer::WriteJs; - use swc::common::source_map::DUMMY_SP; let cmt = IGNORE_DIRECTIVES.join("\n") + "\n"; - wr.write_comment(DUMMY_SP, &cmt)?; + wr.write_comment(&cmt)?; } let mut emitter = swc::codegen::Emitter { |
