Skip to content

Commit

Permalink
Create Parcel V3 javascript integration test suite (#9886)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattcompiles authored Aug 1, 2024
1 parent abacfa4 commit 808ad6a
Show file tree
Hide file tree
Showing 2 changed files with 6,125 additions and 0 deletions.
9 changes: 9 additions & 0 deletions crates/parcel/src/plugins/config_plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,15 @@ impl Plugins for ConfigPlugins {

for transformer in self.config.transformers.get(path, named_pattern).iter() {
transformer.hash(&mut hasher);
if transformer.package_name == "@parcel/transformer-babel"
|| transformer.package_name == "@parcel/transformer-react-refresh-wrap"
{
// Currently JS plugins don't work and it's easier to just skip these.
// We also will probably remove babel from the defaults and support
// react refresh in Rust before releasing native asset graph
continue;
}

if transformer.package_name == "@parcel/transformer-js" {
transformers.push(Box::new(ParcelJsTransformerPlugin::new()));
continue;
Expand Down
Loading

0 comments on commit 808ad6a

Please sign in to comment.