From 42dfd84824ddad635977f3feedcd3f4b9f7287b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Donny/=EA=B0=95=EB=8F=99=EC=9C=A4?= Date: Fri, 2 Dec 2022 17:45:56 +0900 Subject: [PATCH] css --- Cargo.lock | 1 + crates/swc_plugin_runner/Cargo.toml | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index d524e429ca94..5b02b6ec2e2b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4371,6 +4371,7 @@ dependencies = [ "serde_json", "swc_atoms", "swc_common", + "swc_css_ast", "swc_ecma_ast", "swc_ecma_loader", "swc_ecma_parser", diff --git a/crates/swc_plugin_runner/Cargo.toml b/crates/swc_plugin_runner/Cargo.toml index 69c754cd475a..3b5bec6fbc22 100644 --- a/crates/swc_plugin_runner/Cargo.toml +++ b/crates/swc_plugin_runner/Cargo.toml @@ -24,6 +24,8 @@ plugin_transform_schema_vtest = ["swc_common/plugin_transform_schema_vtest"] # Enable ECMASCript support ecma = ["swc_ecma_ast/rkyv-impl"] +# Enable CSS support +css = ["swc_css_ast/rkyv-impl"] __rkyv = [] rkyv-bytecheck-impl = [ @@ -43,9 +45,9 @@ serde_json = "1.0.64" swc_common = {version = "0.29.17", path = "../swc_common", features = [ "concurrent", ]} +swc_css_ast = {version = "0.128.1", path = "../swc_css_ast", optional = true} swc_ecma_ast = {version = "0.95.1", path = "../swc_ecma_ast", optional = true} -swc_plugin_proxy = {version = "0.23.1", path = "../swc_plugin_proxy"} - +swc_plugin_proxy = {version = "0.23.0", path = "../swc_plugin_proxy"} tracing = "0.1.32" wasmer = {version = "2.3.0", default-features = false} wasmer-wasi = {version = "2.3.0", default-features = false}