Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove @fresh/core/client export #2477

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
"exports": {
".": "./src/mod.ts",
"./runtime": "./src/runtime/shared.ts",
"./client": "./src/runtime/client/mod.tsx",
"./client-dev": "./src/runtime/client/dev.ts",
"./dev": "./src/dev/mod.ts"
},
"lock": false,
Expand Down Expand Up @@ -39,8 +37,6 @@
"$std/": "https://deno.land/std@0.216.0/",
"@astral/astral": "jsr:@astral/astral@^0.4.0",
"@fresh/core": "./src/mod.ts",
"@fresh/core/client": "./src/runtime/client/mod.tsx",
"@fresh/core/client-dev": "./src/runtime/client/dev.ts",
"@fresh/core/dev": "./src/dev/mod.ts",
"@fresh/core/runtime": "./src/runtime/shared.ts",
"@fresh/plugin-tailwind": "./plugin-tailwindcss/src/mod.ts",
Expand Down
6 changes: 5 additions & 1 deletion src/dev/builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,12 @@ export class Builder implements FreshBuilder {

const buildCache = getBuildCache(app)! as MemoryBuildCache | DiskBuildCache;

const runtimePath = dev
? "../runtime/client/dev.ts"
: "../runtime/client/mod.tsx";

const entryPoints: Record<string, string> = {
"fresh-runtime": dev ? "@fresh/core/client-dev" : "@fresh/core/client",
"fresh-runtime": new URL(runtimePath, import.meta.url).href,
};
const seenEntries = new Map<string, Island>();
const mapIslandToEntry = new Map<Island, string>();
Expand Down
2 changes: 0 additions & 2 deletions www/deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"$marked-mangle": "https://esm.sh/marked-mangle@1.1.7",
"$std/": "https://deno.land/std@0.216.0/",
"@fresh/core": "../src/mod.ts",
"@fresh/core/client": "../src/runtime/client/mod.tsx",
"@fresh/core/client-dev": "../src/runtime/client/dev.ts",
"@fresh/core/dev": "../src/dev/mod.ts",
"@fresh/core/runtime": "../src/runtime/shared.ts",
"@fresh/plugin-tailwind": "../plugin-tailwindcss/src/mod.ts",
Expand Down
Loading