Skip to content

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
kdy1 committed Sep 3, 2022
1 parent eb8efd8 commit 7f34d7c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
6 changes: 3 additions & 3 deletions packages/next-swc/crates/core/src/remove_console.rs
@@ -1,10 +1,10 @@
use serde::Deserialize;

use swc_core::{
ast::*,
atoms::JsWord,
common::{collections::AHashSet, DUMMY_SP},
visit::{noop_fold_type, Fold, FoldWith},
ecma::ast::*,
ecma::atoms::JsWord,
ecma::visit::{noop_fold_type, Fold, FoldWith},
};

use crate::top_level_binding_collector::collect_top_level_decls;
Expand Down
8 changes: 4 additions & 4 deletions packages/next-swc/crates/core/src/shake_exports.rs
@@ -1,11 +1,11 @@
use serde::Deserialize;

use swc_core::{
ast::*,
atoms::{js_word, JsWord},
common::Mark,
transforms::optimization::simplify::dce::{dce, Config as DCEConfig},
visit::{Fold, FoldWith},
ecma::ast::*,
ecma::atoms::{js_word, JsWord},
ecma::transforms::optimization::simplify::dce::{dce, Config as DCEConfig},
ecma::visit::{Fold, FoldWith},
};

#[derive(Clone, Debug, Deserialize)]
Expand Down
@@ -1,13 +1,13 @@
use std::hash::Hash;

use swc_core::{
ast::{
common::{collections::AHashSet, SyntaxContext},
ecma::ast::{
ClassDecl, FnDecl, Ident, ImportDefaultSpecifier, ImportNamedSpecifier,
ImportStarAsSpecifier, ModuleItem, ObjectPatProp, Param, Pat, Stmt, VarDeclarator,
},
common::{collections::AHashSet, SyntaxContext},
utils::ident::IdentLike,
visit::{noop_visit_type, Visit, VisitWith},
ecma::utils::ident::IdentLike,
ecma::visit::{noop_visit_type, Visit, VisitWith},
};

// Modified from swc_ecma_utils/src/lib.rs:BindingCollector.
Expand Down
4 changes: 2 additions & 2 deletions packages/next-swc/crates/core/tests/errors.rs
Expand Up @@ -5,8 +5,8 @@ use next_swc::{
use std::path::PathBuf;
use swc_core::{
common::FileName,
parser::{EsConfig, Syntax},
testing_transform::test_fixture_allowing_error,
ecma::parser::{EsConfig, Syntax},
ecma::transforms::testing::test_fixture_allowing_error,
};
use testing::fixture;

Expand Down
6 changes: 3 additions & 3 deletions packages/next-swc/crates/styled_jsx/tests/fixture.rs
Expand Up @@ -3,9 +3,9 @@ use std::path::PathBuf;
use styled_jsx::styled_jsx;
use swc_core::{
common::{chain, FileName, Mark, Span, DUMMY_SP},
parser::{EsConfig, Syntax},
testing_transform::{test_fixture, test_fixture_allowing_error},
transforms::resolver,
ecma::parser::{EsConfig, Syntax},
ecma::transforms::resolver,
ecma::transforms::testing::{test_fixture, test_fixture_allowing_error},
};
use testing::fixture;

Expand Down

0 comments on commit 7f34d7c

Please sign in to comment.