Skip to content

Commit 0b45d6b

Browse files
committed
fix react compiler example
1 parent 144e4c1 commit 0b45d6b

File tree

4 files changed

+2142
-2150
lines changed

4 files changed

+2142
-2150
lines changed

examples/react-compiler/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
"@vitejs/plugin-react": "^4.3.4",
2222
"babel-plugin-react-compiler": "^19.1.0-rc.1",
2323
"globals": "^16.0.0",
24-
"react-compiler-runtime": "^19.1.0-rc.1",
2524
"typescript": "~5.7.2",
2625
"vite": "^6.3.1"
2726
}

examples/react-compiler/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ export default defineConfig({
66
react({
77
babel: {
88
plugins: [
9-
["babel-plugin-react-compiler", {}],
9+
["babel-plugin-react-compiler", {
10+
target: "19"
11+
}],
1012
],
1113
},
1214
}),

scripts/prepare.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,9 @@ for (const sample of samples) {
3737
path.join(__dirname, "../examples", sampleName, "src/data.ts")
3838
);
3939

40-
const stackblitz = `https://stackblitz.com/github/lukasbach/headless-tree/tree/main/examples/${sampleName}?embed=1&theme=dark&preset=node&file=src/main.tsx`;
41-
const codesandbox = `https://codesandbox.io/p/devbox/github/lukasbach/headless-tree/tree/main/examples/${sampleName}?embed=1&theme=dark&file=src/main.tsx`;
40+
// embed=1&theme=dark&
41+
const stackblitz = `https://stackblitz.com/github/lukasbach/headless-tree/tree/main/examples/${sampleName}?preset=node&file=src/main.tsx`;
42+
const codesandbox = `https://codesandbox.io/p/devbox/github/lukasbach/headless-tree/tree/main/examples/${sampleName}?file=src/main.tsx`;
4243
const github = `https://github.com/lukasbach/headless-tree/tree/main/examples/${sampleName}`;
4344
await fs.writeFile(
4445
path.join(__dirname, `../examples/${sampleName}/readme.MD`),

0 commit comments

Comments
 (0)