feat(swc_core): Expose swc_css_modules (#6394)

This commit is contained in:
OJ Kwon 2022-11-09 17:05:55 -08:00 committed by GitHub
parent c356f96820
commit 26b21b1d21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 0 deletions

1
Cargo.lock generated
View File

@ -3175,6 +3175,7 @@ dependencies = [
"swc_css_codegen",
"swc_css_compat",
"swc_css_minifier",
"swc_css_modules",
"swc_css_parser",
"swc_css_prefixer",
"swc_css_utils",

View File

@ -148,6 +148,7 @@ css_ast = ["__css", "swc_css_ast"]
css_codegen = ["__css", "swc_css_codegen"]
css_compat = ["__css", "swc_css_compat"]
css_minifier = ["__css", "swc_css_minifier"]
css_modules = ["__css", "swc_css_modules"]
css_parser = ["__css", "swc_css_parser"]
css_prefixer = ["__css", "swc_css_prefixer"]
css_utils = ["__css", "swc_css_utils"]
@ -326,6 +327,7 @@ swc_common = { optional = true, version = "0.29.13", path
swc_css_ast = { optional = true, version = "0.124.6", path = "../swc_css_ast" }
swc_css_codegen = { optional = true, version = "0.134.18", path = "../swc_css_codegen" }
swc_css_minifier = { optional = true, version = "0.99.19", path = "../swc_css_minifier" }
swc_css_modules = { optional = true, version = "0.10.18", path = "../swc_css_modules" }
swc_css_parser = { optional = true, version = "0.133.18", path = "../swc_css_parser" }
swc_css_prefixer = { optional = true, version = "0.135.18", path = "../swc_css_prefixer" }
swc_css_utils = { optional = true, version = "0.121.6", path = "../swc_css_utils/" }

View File

@ -178,6 +178,12 @@ pub mod css {
pub use swc_css_ast::*;
}
#[cfg(feature = "css_modules")]
#[cfg_attr(docsrs, doc(cfg(feature = "css_modules")))]
pub mod modules {
pub use swc_css_modules::*;
}
#[cfg(feature = "css_codegen")]
#[cfg_attr(docsrs, doc(cfg(feature = "css_codegen")))]
pub mod codegen {