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 7f34d7c commit 162d7c6
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 15 deletions.
8 changes: 4 additions & 4 deletions packages/next-swc/crates/core/tests/fixture.rs
Expand Up @@ -11,9 +11,9 @@ use next_swc::{
use std::path::PathBuf;
use swc_core::{
common::{chain, comments::SingleThreadedComments, FileName, Mark},
parser::{EsConfig, Syntax},
testing_transform::{test, test_fixture},
transforms::react::jsx,
ecma::parser::{EsConfig, Syntax},
ecma::transforms::react::jsx,
ecma::transforms::testing::{test, test_fixture},
};
use testing::fixture;

Expand Down Expand Up @@ -86,7 +86,7 @@ fn next_ssg_fixture(input: PathBuf) {
let jsx = jsx::<SingleThreadedComments>(
tr.cm.clone(),
None,
swc_core::transforms::react::Options {
swc_core::ecma::transforms::react::Options {
next: false.into(),
runtime: None,
import_source: Some("".into()),
Expand Down
4 changes: 2 additions & 2 deletions packages/next-swc/crates/core/tests/full.rs
Expand Up @@ -3,8 +3,8 @@ use serde::de::DeserializeOwned;
use std::path::{Path, PathBuf};
use swc_core::{
base::Compiler,
parser::{Syntax, TsConfig},
transforms::pass::noop,
ecma::parser::{Syntax, TsConfig},
ecma::transforms::pass::noop,
};
use testing::{NormalizedOutput, Tester};

Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/core/tests/telemetry.rs
Expand Up @@ -9,7 +9,7 @@ use once_cell::sync::Lazy;
use swc_core::{
base::{try_with_handler, Compiler},
common::{FileName, FilePathMapping, SourceMap},
transforms::pass::noop,
ecma::transforms::pass::noop,
};

static COMPILER: Lazy<Arc<Compiler>> = Lazy::new(|| {
Expand Down
10 changes: 5 additions & 5 deletions packages/next-swc/crates/napi/src/bundle/mod.rs
Expand Up @@ -8,21 +8,21 @@ use once_cell::sync::Lazy;
use serde::Deserialize;
use std::{collections::HashMap, path::PathBuf, sync::Arc};
use swc_core::{
ast::*,
atoms::JsWord,
base::{config::SourceMapsConfig, try_with_handler, TransformOutput},
bundler::{Bundler, ModuleData, ModuleRecord},
common::{
collections::AHashMap,
errors::{ColorConfig, Handler},
BytePos, FileName, SourceMap, Span,
},
loader::{
ecma::ast::*,
ecma::atoms::JsWord,
ecma::loader::{
resolvers::{lru::CachingResolver, node::NodeModulesResolver},
TargetEnv, NODE_BUILTINS,
},
parser::{lexer::Lexer, EsConfig, Parser, StringInput, Syntax},
visit::{noop_visit_type, Visit, VisitWith},
ecma::parser::{lexer::Lexer, EsConfig, Parser, StringInput, Syntax},
ecma::visit::{noop_visit_type, Visit, VisitWith},
};

#[js_function(1)]
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/napi/src/transform.rs
Expand Up @@ -45,7 +45,7 @@ use std::{
use swc_core::{
base::{try_with_handler, Compiler, TransformOutput},
common::{errors::ColorConfig, FileName},
transforms::pass::noop,
ecma::transforms::pass::noop,
};

/// Input to transform
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/styled_jsx/tests/fixture.rs
Expand Up @@ -60,7 +60,7 @@ fn styled_jsx_fixture(input: PathBuf) {
}

pub struct DropSpan;
impl swc_core::visit::VisitMut for DropSpan {
impl swc_core::ecma::visit::VisitMut for DropSpan {
fn visit_mut_span(&mut self, span: &mut Span) {
*span = DUMMY_SP
}
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/crates/wasm/src/lib.rs
Expand Up @@ -9,7 +9,7 @@ use wasm_bindgen_futures::future_to_promise;
use swc_core::{
base::{config::JsMinifyOptions, config::ParseOptions, try_with_handler, Compiler},
common::{comments::Comments, errors::ColorConfig, FileName, FilePathMapping, SourceMap},
transforms::pass::noop,
ecma::transforms::pass::noop,
};

fn convert_err(err: Error) -> JsValue {
Expand Down

0 comments on commit 162d7c6

Please sign in to comment.