Skip to content

Commit

Permalink
refactor: 🔥 remove unecessary transform (#1727)
Browse files Browse the repository at this point in the history
  • Loading branch information
stormslowly authored Dec 18, 2024
1 parent 9a00db2 commit 8f15f20
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 206 deletions.
5 changes: 0 additions & 5 deletions crates/mako/src/build/transform.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ use crate::visitors::css_px2rem::Px2Rem;
use crate::visitors::default_export_namer::DefaultExportNamer;
use crate::visitors::dynamic_import_to_require::DynamicImportToRequire;
use crate::visitors::env_replacer::{build_env_map, EnvReplacer};
use crate::visitors::fix_helper_inject_position::FixHelperInjectPosition;
use crate::visitors::fix_symbol_conflict::FixSymbolConflict;
use crate::visitors::import_meta_env_replacer::ImportMetaEnvReplacer;
use crate::visitors::import_template_to_string_literal::ImportTemplateToStringLiteral;
Expand Down Expand Up @@ -101,10 +100,6 @@ impl Transform {
top_level_mark,
is_ts || is_tsx,
)),
// fix helper inject position
// should be removed after upgrade to latest swc
// ref: https://github.com/umijs/mako/issues/1193
Box::new(FixHelperInjectPosition::new()),
Box::new(FixSymbolConflict::new(top_level_mark)),
Box::new(NewUrlAssets {
context: context.clone(),
Expand Down
1 change: 0 additions & 1 deletion crates/mako/src/visitors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ pub(crate) mod dep_replacer;
pub(crate) mod dynamic_import;
pub(crate) mod dynamic_import_to_require;
pub(crate) mod env_replacer;
pub(crate) mod fix_helper_inject_position;
pub(crate) mod fix_symbol_conflict;
pub(crate) mod import_meta_env_replacer;
pub(crate) mod import_template_to_string_literal;
Expand Down
200 changes: 0 additions & 200 deletions crates/mako/src/visitors/fix_helper_inject_position.rs

This file was deleted.

0 comments on commit 8f15f20

Please sign in to comment.