|
|
[package] |
|
|
edition = "2024" |
|
|
name = "next-swc-napi" |
|
|
version = "0.0.0" |
|
|
publish = false |
|
|
|
|
|
[lib] |
|
|
crate-type = ["cdylib", "rlib"] |
|
|
|
|
|
[features] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin = [ |
|
|
"swc_core/plugin_transform_host_native", |
|
|
"swc_core/plugin_transform_host_native_filesystem_cache", |
|
|
"swc_core/plugin_transform_host_native_shared_runtime", |
|
|
"next-custom-transforms/plugin", |
|
|
"next-core/plugin", |
|
|
"turbopack-ecmascript-plugins", |
|
|
"turbopack-ecmascript-plugins/swc_ecma_transform_plugin", |
|
|
] |
|
|
|
|
|
image-webp = ["next-core/image-webp"] |
|
|
image-avif = ["next-core/image-avif"] |
|
|
|
|
|
|
|
|
|
|
|
image-extended = ["image-webp"] |
|
|
|
|
|
|
|
|
__internal_dhat-heap = ["dhat"] |
|
|
|
|
|
|
|
|
|
|
|
__internal_dhat-ad-hoc = ["dhat"] |
|
|
|
|
|
|
|
|
tokio-console = ["dep:console-subscriber"] |
|
|
|
|
|
[lints] |
|
|
workspace = true |
|
|
|
|
|
[package.metadata.cargo-shear] |
|
|
ignored = [ |
|
|
|
|
|
"getrandom", |
|
|
"iana-time-zone", |
|
|
|
|
|
|
|
|
"turbopack-ecmascript-plugins", |
|
|
] |
|
|
|
|
|
[dependencies] |
|
|
anyhow = "1.0.66" |
|
|
console-subscriber = { workspace = true, optional = true } |
|
|
dhat = { workspace = true, optional = true } |
|
|
either = { workspace = true } |
|
|
futures-util = { workspace = true } |
|
|
owo-colors = { workspace = true } |
|
|
napi = { workspace = true } |
|
|
napi-derive = "2" |
|
|
next-custom-transforms = { workspace = true } |
|
|
rand = { workspace = true } |
|
|
rustc-hash = { workspace = true } |
|
|
serde = "1" |
|
|
serde_json = "1" |
|
|
supports-hyperlinks = "3.1.0" |
|
|
terminal_hyperlink = "0.1.0" |
|
|
tracing = { workspace = true } |
|
|
tracing-subscriber = { workspace = true } |
|
|
tracing-chrome = "0.7.2" |
|
|
url = { workspace = true } |
|
|
urlencoding = { workspace = true } |
|
|
once_cell = { workspace = true } |
|
|
|
|
|
swc_core = { workspace = true, features = [ |
|
|
"base_node", |
|
|
"common_concurrent", |
|
|
"ecma_ast", |
|
|
"ecma_ast_serde", |
|
|
"ecma_codegen", |
|
|
"ecma_helpers_inline", |
|
|
"ecma_loader_lru", |
|
|
"ecma_loader_node", |
|
|
"ecma_minifier", |
|
|
"ecma_parser", |
|
|
"ecma_parser_typescript", |
|
|
"ecma_transforms", |
|
|
"ecma_transforms_optimization", |
|
|
"ecma_transforms_react", |
|
|
"ecma_transforms_typescript", |
|
|
"ecma_utils", |
|
|
"ecma_visit", |
|
|
] } |
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.dependencies] |
|
|
lightningcss-napi = { workspace = true } |
|
|
tokio = { workspace = true, features = ["full"] } |
|
|
turbo-rcstr = { workspace = true, features = ["napi"] } |
|
|
turbo-tasks = { workspace = true } |
|
|
turbo-tasks-backend = { workspace = true } |
|
|
turbo-tasks-fs = { workspace = true } |
|
|
next-api = { workspace = true } |
|
|
next-build = { workspace = true } |
|
|
next-core = { workspace = true } |
|
|
|
|
|
mdxjs = { workspace = true, features = ["serializable"] } |
|
|
|
|
|
turbo-tasks-malloc = { workspace = true, default-features = false, features = [ |
|
|
"custom_allocator" |
|
|
] } |
|
|
|
|
|
turbopack-core = { workspace = true } |
|
|
turbopack-ecmascript-hmr-protocol = { workspace = true } |
|
|
turbopack-trace-utils = { workspace = true } |
|
|
turbopack-trace-server = { workspace = true } |
|
|
turbopack-ecmascript-plugins = { workspace = true, optional = true } |
|
|
|
|
|
|
|
|
|
|
|
[target.'cfg(target_arch = "wasm32")'.dependencies] |
|
|
getrandom = { version = "0.2.9", default-features = false, features = ["js"] } |
|
|
iana-time-zone = { version = "*", features = ["fallback"] } |
|
|
|
|
|
mdxjs = { workspace = true } |
|
|
|
|
|
turbo-tasks-malloc = { workspace = true, default-features = false } |
|
|
|
|
|
|
|
|
[target.wasm32-wasip1-threads.dependencies] |
|
|
|
|
|
tokio = { workspace = true, features = ["full"] } |
|
|
|
|
|
[build-dependencies] |
|
|
anyhow = { workspace = true } |
|
|
napi-build = "2" |
|
|
serde = { workspace = true } |
|
|
serde_json = { workspace = true } |
|
|
vergen-gitcl = { workspace = true } |
|
|
|
|
|
|
|
|
[target.'cfg(not(target_arch = "wasm32"))'.build-dependencies] |
|
|
turbo-tasks-build = { workspace = true } |
|
|
|