diff --git a/crates/turbo-trace/src/tracer.rs b/crates/turbo-trace/src/tracer.rs index 99a1117b7935d..7ad4359a744bc 100644 --- a/crates/turbo-trace/src/tracer.rs +++ b/crates/turbo-trace/src/tracer.rs @@ -172,6 +172,7 @@ impl Tracer { } else { Syntax::Es(EsSyntax { jsx: true, + import_attributes: true, ..Default::default() }) }; diff --git a/turborepo-tests/integration/fixtures/turbo_trace/button.tsx b/turborepo-tests/integration/fixtures/turbo_trace/button.tsx index eee8cacf69ee9..b71f0e65a5e10 100644 --- a/turborepo-tests/integration/fixtures/turbo_trace/button.tsx +++ b/turborepo-tests/integration/fixtures/turbo_trace/button.tsx @@ -1,5 +1,5 @@ import "./button.css"; -import "./button.json"; +import "./button.json" with { type: "json" }; export const Button = ({ children }: { children: React.ReactNode }) => { return ; diff --git a/turborepo-tests/integration/fixtures/turbo_trace/foo.js b/turborepo-tests/integration/fixtures/turbo_trace/foo.js index 6bfab2b18bb17..f82afc8a07e2d 100644 --- a/turborepo-tests/integration/fixtures/turbo_trace/foo.js +++ b/turborepo-tests/integration/fixtures/turbo_trace/foo.js @@ -1,4 +1,4 @@ -import { bar } from "./bar"; +import { bar } from "./bar" with { type: "js" }; export default function foo() { if (!process.env.IS_CI) { diff --git a/turborepo-tests/integration/fixtures/turbo_trace_monorepo/packages/another/index.jsx b/turborepo-tests/integration/fixtures/turbo_trace_monorepo/packages/another/index.jsx index 94639c6347160..37dd6d2e27940 100644 --- a/turborepo-tests/integration/fixtures/turbo_trace_monorepo/packages/another/index.jsx +++ b/turborepo-tests/integration/fixtures/turbo_trace_monorepo/packages/another/index.jsx @@ -1,3 +1,3 @@ -import ship from "utils"; +import ship from "utils" with { type: "js" }; export const blackbeard = "Edward Teach on " + ship;