Skip to content

Commit

Permalink
test rolldown-vite
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Jan 24, 2025
1 parent 86ffa27 commit 51486c6
Show file tree
Hide file tree
Showing 3 changed files with 387 additions and 56 deletions.
6 changes: 4 additions & 2 deletions examples/react-server/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,8 @@ function vitePluginUseClient(): PluginOption {
manager.clientReferenceMap.delete(id);
if (code.includes("use client")) {
const runtimeId = await normalizeReferenceId(id, "client");
const ast = await parseAstAsync(code);
const ast = this.parse(code)
// const ast = await parseAstAsync(code);
let output = await transformDirectiveProxyExport(ast, {
directive: "use client",
id: runtimeId,
Expand Down Expand Up @@ -291,7 +292,8 @@ function vitePluginServerAction(): PluginOption {
if (!code.includes("use server") || id.includes("/.vite/deps/")) {
return;
}
const ast = await parseAstAsync(code);
const ast = this.parse(code)
// const ast = await parseAstAsync(code);
tinyassert(this.environment);
const runtimeId = await normalizeReferenceId(id, "rsc");
if (this.environment.name === "rsc") {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"tsup": "^8.3.5",
"tsx": "^4.19.2",
"typescript": "^5.7.3",
"vite": "^6.0.11",
"vite": "https://pkg.pr.new/rolldown/vite@109dd05",
"vitest": "^3.0.3",
"wrangler": "^3.105.0"
},
Expand Down
Loading

0 comments on commit 51486c6

Please sign in to comment.