diff --git a/packages/react-server/examples/basic/deps/cjs/package.json b/packages/react-server/examples/basic/deps/cjs/package.json index 07788633f..573131b9c 100644 --- a/packages/react-server/examples/basic/deps/cjs/package.json +++ b/packages/react-server/examples/basic/deps/cjs/package.json @@ -5,7 +5,7 @@ "exports": { "./server": "./server.js", "./server2": "./server2.js", - "./client": "./cilent.js" + "./client": "./client.js" }, "dependencies": { "react": "*" diff --git a/packages/react-server/examples/basic/deps/context/server2.js b/packages/react-server/examples/basic/deps/context/server2.js index 36fc647c5..5deffdffd 100644 --- a/packages/react-server/examples/basic/deps/context/server2.js +++ b/packages/react-server/examples/basic/deps/context/server2.js @@ -1,7 +1,7 @@ // difference from `server.js` is that -// this uses self exports reference `@hiogawa/test-deps-context/client` +// this uses self exports reference `@hiogawa/test-dep-context/client` // instead of relative reference `./client.js` -import { MyContextProvider } from "@hiogawa/test-deps-context/client"; +import { MyContextProvider } from "@hiogawa/test-dep-context/client"; import React from "react"; // consume own provider in server entr diff --git a/packages/react-server/examples/basic/src/routes/test/deps/examples/cjs2/page.tsx b/packages/react-server/examples/basic/src/routes/test/deps/examples/cjs2/page.tsx index b9ce4088d..95c98ae6c 100644 --- a/packages/react-server/examples/basic/src/routes/test/deps/examples/cjs2/page.tsx +++ b/packages/react-server/examples/basic/src/routes/test/deps/examples/cjs2/page.tsx @@ -1,8 +1,8 @@ -// TODO: self reference not resolved (vite bug?) - // @ts-ignore -// import { TestServer } from "@hiogawa/test-dep-cjs/server2"; +import { TestServer } from "@hiogawa/test-dep-cjs/server2"; export default function Page() { - return
{/* */}
; + return
+ +
; } diff --git a/packages/react-server/examples/basic/src/routes/test/deps/examples/context2/page.tsx b/packages/react-server/examples/basic/src/routes/test/deps/examples/context2/page.tsx index 806f80fa3..1a414ee62 100644 --- a/packages/react-server/examples/basic/src/routes/test/deps/examples/context2/page.tsx +++ b/packages/react-server/examples/basic/src/routes/test/deps/examples/context2/page.tsx @@ -1,14 +1,14 @@ -// // @ts-ignore -// import { TestClient } from "@hiogawa/test-dep-context/client"; -// // @ts-ignore -// import { TestServer } from "@hiogawa/test-dep-context/server2"; +// @ts-ignore +import { TestClient } from "@hiogawa/test-dep-context/client"; +// @ts-ignore +import { TestServer } from "@hiogawa/test-dep-context/server2"; export default function Page() { return (
- {/* + - */} +
); }