refactor(swc_core): Make common_plugin_transform agnostic to mode (#7422)

This commit is contained in:
OJ Kwon 2023-05-21 21:07:55 -07:00 committed by GitHub
parent 12b966ea21
commit cfdd407896
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,14 +239,15 @@ __common_plugin_transform = [
"ecma_visit",
"__common",
"swc_atoms/rkyv-impl",
"swc_common/plugin-mode",
"swc_plugin_proxy/plugin-mode",
"swc_plugin_macro",
"once_cell",
"swc_plugin",
]
__css_plugin_transform = [
"swc_common/plugin-mode",
"swc_plugin_proxy/plugin-mode",
# Dependent features
"__common_plugin_transform",
"css_visit",
@ -254,6 +255,9 @@ __css_plugin_transform = [
"swc_css_ast/rkyv-impl",
]
__ecma_plugin_transform = [
"swc_common/plugin-mode",
"swc_plugin_proxy/plugin-mode",
# Dependent features
"__common_plugin_transform",
"ecma_visit",