Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed May 5, 2021
1 parent e0e035b commit e29a25c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 14 deletions.
3 changes: 3 additions & 0 deletions node/babel/ast/src/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#![feature(macro_attributes_in_derive_output)]

/// Explicit extern crate to use global allocator.
extern crate swc_node_base;

mod class;
mod comment;
mod common;
Expand Down
6 changes: 0 additions & 6 deletions node/babel/compat/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,3 @@ swc_node_base = {path = "../../base"}
pretty_assertions = "0.7.1"
swc_ecma_transforms = {path = "../../../ecmascript/transforms/"}
walkdir = "2"

[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dev-dependencies]
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}

[target.'cfg(windows)'.dev-dependencies]
mimalloc = {version = "0.1"}
8 changes: 0 additions & 8 deletions node/babel/compat/benches/babelify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,6 @@ use swc_ecma_transforms::typescript;
use swc_ecma_visit::FoldWith;
use test::Bencher;

#[cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))]
#[global_allocator]
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;

#[cfg(windows)]
#[global_allocator]
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;

static SOURCE: &str = include_str!("assets/AjaxObservable.ts");

fn mk() -> swc::Compiler {
Expand Down

0 comments on commit e29a25c

Please sign in to comment.