File tree Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Expand file tree Collapse file tree 3 files changed +3
-14
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( macro_attributes_in_derive_output) ]
2
2
3
+ /// Explicit extern crate to use global allocator.
4
+ extern crate swc_node_base;
5
+
3
6
mod class;
4
7
mod comment;
5
8
mod common;
Original file line number Diff line number Diff line change @@ -29,9 +29,3 @@ swc_node_base = {path = "../../base"}
29
29
pretty_assertions = " 0.7.1"
30
30
swc_ecma_transforms = {path = " ../../../ecmascript/transforms/" }
31
31
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" }
Original file line number Diff line number Diff line change @@ -17,14 +17,6 @@ use swc_ecma_transforms::typescript;
17
17
use swc_ecma_visit:: FoldWith ;
18
18
use test:: Bencher ;
19
19
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
-
28
20
static SOURCE : & str = include_str ! ( "assets/AjaxObservable.ts" ) ;
29
21
30
22
fn mk ( ) -> swc:: Compiler {
You can’t perform that action at this time.
0 commit comments