fix(swc_core): Apply plugin features (#5457)

This commit is contained in:
OJ Kwon 2022-08-11 21:36:52 -07:00 committed by GitHub
parent 7437f53047
commit 3760ba07b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 5 deletions

2
Cargo.lock generated
View File

@ -3132,7 +3132,7 @@ dependencies = [
[[package]]
name = "swc_core"
version = "0.6.3"
version = "0.6.4"
dependencies = [
"binding_macros",
"once_cell",

View File

@ -6,7 +6,7 @@ edition = "2021"
license = "Apache-2.0"
name = "swc_core"
repository = "https://github.com/swc-project/swc.git"
version = "0.6.3"
version = "0.6.4"
[package.metadata.docs.rs]
features = [
"common_perf",
@ -154,24 +154,27 @@ __plugin_transform_schema_vtest = ["swc_common/plugin_transform_schema_vtest"]
## Plugins
# Internal flags for any transform plugin feature
__plugin_transform = [
# Dependent features
"visit",
"__common",
"ast", # Enable optional packages
"swc_ecma_ast/rkyv-impl",
"swc_atoms/rkyv-impl",
"swc_common/plugin-mode",
"swc_plugin_proxy/plugin-mode",
"swc_plugin_macro",
"swc_plugin",
"once_cell",
]
] # Internal flags for any transform plugin feature
# Internal flags for any transform plugin host feature
__plugin_transform_host = [
# Dependent features
"__common", # Enable optional packages
"swc_ecma_ast/rkyv-impl",
"swc_atoms/rkyv-impl",
"swc_common/plugin-rt",
# TODO: we may simply flag around downlevel plugin feature
"swc_plugin_proxy/plugin-rt",
"swc/plugin",