a8e54e79d4
`shake_exports` relies on `ecma_transforms_optimization`, otherwise this will be thrown if running tests: ``` error[E0433]: failed to resolve: could not find `optimization` in `transforms` --> crates/core/src/shake_exports.rs:7:23 | 7 | ecma::transforms::optimization::simplify::dce::{dce, Config as DCEConfig}, | ^^^^^^^^^^^^ could not find `optimization` in `transforms` ``` ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples)
53 lines
1.1 KiB
TOML
53 lines
1.1 KiB
TOML
[package]
|
|
edition = "2018"
|
|
name = "next-swc"
|
|
version = "0.0.0"
|
|
publish = false
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[features]
|
|
plugin = [
|
|
"swc_core/plugin_transform_host_native"
|
|
]
|
|
|
|
[dependencies]
|
|
chrono = "0.4"
|
|
easy-error = "1.0.0"
|
|
either = "1"
|
|
fxhash = "0.2.1"
|
|
once_cell = "1.13.0"
|
|
pathdiff = "0.2.0"
|
|
regex = "1.5"
|
|
serde = "1"
|
|
serde_json = "1"
|
|
swc_emotion = {path="../emotion"}
|
|
styled_components = {path="../styled_components"}
|
|
styled_jsx = {path="../styled_jsx"}
|
|
modularize_imports = {path="../modularize_imports"}
|
|
tracing = { version = "0.1.32", features = ["release_max_level_info"] }
|
|
|
|
swc_core = { version = "0.23.24", features = [
|
|
"common_concurrent",
|
|
"ecma_ast",
|
|
"ecma_visit",
|
|
"ecma_loader_node",
|
|
"ecma_loader_lru",
|
|
"ecma_utils",
|
|
"ecma_minifier",
|
|
"ecma_transforms",
|
|
"__ecma_transforms",
|
|
"ecma_transforms_react",
|
|
"ecma_transforms_typescript",
|
|
"ecma_transforms_optimization",
|
|
"ecma_parser",
|
|
"ecma_parser_typescript",
|
|
"cached",
|
|
"base"
|
|
] }
|
|
|
|
[dev-dependencies]
|
|
swc_core = { version = "0.23.24", features = ["testing_transform"] }
|
|
testing = "0.30.7"
|
|
walkdir = "2.3.2"
|