@@ -14,11 +14,13 @@ crate-type = ["cdylib", "rlib"]
1414# time (i.e wasmer/default vs wasmer/js-default) while cargo merges all the
1515# features at once.
1616plugin = [
17- " turbopack-binding/__swc_core_binding_napi_plugin" ,
18- " turbopack-binding/__swc_core_binding_napi_plugin_filesystem_cache" ,
19- " turbopack-binding/__swc_core_binding_napi_plugin_shared_runtime" ,
20- " next-custom-transforms/plugin" ,
21- " next-core/plugin" ,
17+ " swc_core/plugin_transform_host_native" ,
18+ " swc_core/plugin_transform_host_native_filesystem_cache" ,
19+ " swc_core/plugin_transform_host_native_shared_runtime" ,
20+ " next-custom-transforms/plugin" ,
21+ " next-core/plugin" ,
22+ " turbopack-ecmascript-plugins" ,
23+ " turbopack-ecmascript-plugins/swc_ecma_transform_plugin" ,
2224]
2325
2426image-webp = [" next-core/image-webp" ]
@@ -53,14 +55,14 @@ dhat = { workspace = true, optional = true }
5355indexmap = { workspace = true }
5456owo-colors = { workspace = true }
5557napi = { version = " 2" , default-features = false , features = [
56- " napi3" ,
57- " serde-json" ,
58- " tokio_rt" ,
59- " error_anyhow" ,
60- # Lightningcss uses this features
61- " napi4" ,
62- " napi5" ,
63- " compat-mode"
58+ " napi3" ,
59+ " serde-json" ,
60+ " tokio_rt" ,
61+ " error_anyhow" ,
62+ # Lightningcss uses this features
63+ " napi4" ,
64+ " napi5" ,
65+ " compat-mode"
6466] }
6567napi-derive = " 2"
6668next-custom-transforms = { workspace = true }
@@ -73,40 +75,64 @@ tracing-subscriber = { workspace = true }
7375tracing-chrome = " 0.5.0"
7476url = { workspace = true }
7577urlencoding = { workspace = true }
76- once_cell ={workspace = true }
78+ once_cell = { workspace = true }
79+
80+ swc_core = { workspace = true , features = [
81+ " base_concurrent" ,
82+ " base_node" ,
83+ " bundler" ,
84+ " bundler_concurrent" ,
85+ " common_concurrent" ,
86+ " ecma_ast" ,
87+ " ecma_ast_serde" ,
88+ " ecma_codegen" ,
89+ " ecma_loader_lru" ,
90+ " ecma_loader_node" ,
91+ " ecma_minifier" ,
92+ " ecma_parser" ,
93+ " ecma_parser_typescript" ,
94+ " ecma_transforms" ,
95+ " ecma_transforms_optimization" ,
96+ " ecma_transforms_react" ,
97+ " ecma_transforms_typescript" ,
98+ " ecma_utils" ,
99+ " ecma_visit" ,
100+ ] }
77101
78102# Dependencies for the native, non-wasm32 build.
79103[target .'cfg(not(target_arch = "wasm32"))' .dependencies ]
80104lightningcss-napi = { workspace = true }
81105tokio = { workspace = true , features = [" full" ] }
82106turbo-tasks = { workspace = true }
107+ turbo-tasks-memory = { workspace = true }
108+ turbo-tasks-fs = { workspace = true }
83109next-api = { workspace = true }
84110next-build = { workspace = true }
85111next-core = { workspace = true }
86- turbopack-binding = { workspace = true , features = [
87- " __swc_core_binding_napi" ,
88- " __swc_core_serde" ,
89- " __feature_node_file_trace" ,
90- " __feature_mdx_rs" ,
91- " __turbo" ,
92- " __turbo_tasks" ,
93- " __turbo_tasks_malloc" ,
94- " __turbo_tasks_malloc_custom_allocator" ,
95- " __turbo_tasks_memory" ,
96- " __turbopack" ,
97- " __turbopack_ecmascript_hmr_protocol" ,
112+
113+ node-file-trace = { workspace = true , features = [" node-api" ] }
114+ mdxjs = { workspace = true , features = [" serializable" ] }
115+
116+ turbo-tasks-malloc = { workspace = true , default-features = false , features = [
117+ " custom_allocator"
98118] }
99119
120+ turbopack = { workspace = true }
121+ turbopack-core = { workspace = true }
122+ turbopack-ecmascript-hmr-protocol = { workspace = true }
123+ turbopack-trace-utils = { workspace = true }
124+ turbopack-trace-server = { workspace = true }
125+ turbopack-ecmascript-plugins = { workspace = true , optional = true }
126+
127+
100128# Dependencies for the wasm32 build.
101129[target .'cfg(target_arch = "wasm32")' .dependencies ]
102130getrandom = { version = " 0.2.9" , default-features = false , features = [" js" ] }
103131iana-time-zone = { version = " *" , features = [" fallback" ] }
104- turbopack-binding = { workspace = true , features = [
105- " __swc_core_binding_napi" ,
106- " __swc_core_serde" ,
107- " __feature_mdx_rs" ,
108- " __turbo_tasks_malloc" ,
109- ] }
132+
133+ mdxjs = { workspace = true }
134+
135+ turbo-tasks-malloc = { workspace = true , default-features = false }
110136
111137# wasi-only dependencies.
112138[target .wasm32-wasip1-threads .dependencies ]
@@ -122,4 +148,4 @@ shadow-rs = { workspace = true }
122148
123149# build-dependencies for the native, non-wasm32 build
124150[target .'cfg(not(target_arch = "wasm32"))' .build-dependencies ]
125- turbopack-binding = { workspace = true , features = [ " __turbo_tasks_build " ] }
151+ turbo-tasks-build = { workspace = true }
0 commit comments