Skip to content

Commit e29a25c

Browse files
committed
1 parent e0e035b commit e29a25c

File tree

3 files changed

+3
-14
lines changed

3 files changed

+3
-14
lines changed

node/babel/ast/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
#![feature(macro_attributes_in_derive_output)]
22

3+
/// Explicit extern crate to use global allocator.
4+
extern crate swc_node_base;
5+
36
mod class;
47
mod comment;
58
mod common;

node/babel/compat/Cargo.toml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,3 @@ swc_node_base = {path = "../../base"}
2929
pretty_assertions = "0.7.1"
3030
swc_ecma_transforms = {path = "../../../ecmascript/transforms/"}
3131
walkdir = "2"
32-
33-
[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dev-dependencies]
34-
jemallocator = {version = "0.3", features = ["disable_initial_exec_tls"]}
35-
36-
[target.'cfg(windows)'.dev-dependencies]
37-
mimalloc = {version = "0.1"}

node/babel/compat/benches/babelify.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ use swc_ecma_transforms::typescript;
1717
use swc_ecma_visit::FoldWith;
1818
use test::Bencher;
1919

20-
#[cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))]
21-
#[global_allocator]
22-
static ALLOC: jemallocator::Jemalloc = jemallocator::Jemalloc;
23-
24-
#[cfg(windows)]
25-
#[global_allocator]
26-
static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc;
27-
2820
static SOURCE: &str = include_str!("assets/AjaxObservable.ts");
2921

3022
fn mk() -> swc::Compiler {

0 commit comments

Comments
 (0)