Skip to content

Commit

Permalink
fix: remove @fresh/core/client export (#2477)
Browse files Browse the repository at this point in the history
These files are now referenced with https URLs.
  • Loading branch information
lucacasonato committed May 29, 2024
1 parent 4fab473 commit dc283a1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
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/[email protected]/",
"@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/[email protected]",
"$std/": "https://deno.land/[email protected]/",
"@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

0 comments on commit dc283a1

Please sign in to comment.