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]] [[package]]
name = "swc_core" name = "swc_core"
version = "0.6.3" version = "0.6.4"
dependencies = [ dependencies = [
"binding_macros", "binding_macros",
"once_cell", "once_cell",

View File

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