Skip to content

Commit

Permalink
[V3] Add the native CSS transformer (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles authored Oct 16, 2024
1 parent 211cb01 commit 0820fa1
Show file tree
Hide file tree
Showing 8 changed files with 851 additions and 176 deletions.
211 changes: 204 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions crates/atlaspack/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ atlaspack_plugin_transformer_inline_string = { path = "../atlaspack_plugin_trans
atlaspack_plugin_transformer_js = { path = "../atlaspack_plugin_transformer_js" }
atlaspack_plugin_transformer_json = { path = "../atlaspack_plugin_transformer_json" }
atlaspack_plugin_transformer_raw = { path = "../atlaspack_plugin_transformer_raw" }
atlaspack_plugin_transformer_css = { path = "../atlaspack_plugin_transformer_css" }
atlaspack_plugin_transformer_yaml = { path = "../atlaspack_plugin_transformer_yaml" }
atlaspack_plugin_rpc = { path = "../atlaspack_plugin_rpc" }
atlaspack-resolver = { path = "../../packages/utils/node-resolver-rs" }
Expand Down
3 changes: 3 additions & 0 deletions crates/atlaspack/src/plugins/config_plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ use atlaspack_core::plugin::TransformerPlugin;
use atlaspack_core::plugin::ValidatorPlugin;
use atlaspack_plugin_resolver::AtlaspackResolver;
use atlaspack_plugin_rpc::RpcWorkerRef;
use atlaspack_plugin_transformer_css::AtlaspackCssTransformerPlugin;
use atlaspack_plugin_transformer_html::AtlaspackHtmlTransformerPlugin;
use atlaspack_plugin_transformer_image::AtlaspackImageTransformerPlugin;
use atlaspack_plugin_transformer_inline::AtlaspackInlineTransformerPlugin;
Expand Down Expand Up @@ -250,7 +251,9 @@ impl Plugins for ConfigPlugins {
"@atlaspack/transformer-babel" => continue,
"@atlaspack/transformer-react-refresh-wrap" => continue,
"@atlaspack/transformer-posthtml" => continue,
"@atlaspack/transformer-postcss" => continue,
"@atlaspack/transformer-js" => Box::new(AtlaspackJsTransformerPlugin::new(&self.ctx)?),
"@atlaspack/transformer-css" => Box::new(AtlaspackCssTransformerPlugin::new(&self.ctx)),
"@atlaspack/transformer-inline-string" => {
Box::new(AtlaspackInlineStringTransformerPlugin::new(&self.ctx))
}
Expand Down
Loading

0 comments on commit 0820fa1

Please sign in to comment.