Skip to content

Commit 8016cdc

Browse files
fix(boundaries): support import attributes (#10078)
### Description Support import attributes. Also bumps our prettier version so prettier can format import attributes. ### Testing Instructions Adds a test for them.
1 parent b369e8e commit 8016cdc

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

crates/turbo-trace/src/tracer.rs

+1
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@ impl Tracer {
172172
} else {
173173
Syntax::Es(EsSyntax {
174174
jsx: true,
175+
import_attributes: true,
175176
..Default::default()
176177
})
177178
};

turborepo-tests/integration/fixtures/turbo_trace/button.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import "./button.css";
2-
import "./button.json";
2+
import "./button.json" with { type: "json" };
33

44
export const Button = ({ children }: { children: React.ReactNode }) => {
55
return <button>{children}</button>;

turborepo-tests/integration/fixtures/turbo_trace/foo.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { bar } from "./bar";
1+
import { bar } from "./bar" with { type: "js" };
22

33
export default function foo() {
44
if (!process.env.IS_CI) {
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import ship from "utils";
1+
import ship from "utils" with { type: "js" };
22

33
export const blackbeard = "Edward Teach on " + ship;

0 commit comments

Comments
 (0)