-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: export compat types from /compat export (#2478)
- Loading branch information
1 parent
2fb8606
commit aa19b39
Showing
10 changed files
with
182 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ vendor/ | |
node_modules/ | ||
.docs/ | ||
.DS_Store | ||
tmp-* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,8 @@ | |
"exports": { | ||
".": "./src/mod.ts", | ||
"./runtime": "./src/runtime/shared.ts", | ||
"./dev": "./src/dev/mod.ts" | ||
"./dev": "./src/dev/mod.ts", | ||
"./compat": "./src/compat/mod.ts" | ||
}, | ||
"lock": false, | ||
"tasks": { | ||
|
@@ -39,6 +40,7 @@ | |
"@fresh/core": "./src/mod.ts", | ||
"@fresh/core/dev": "./src/dev/mod.ts", | ||
"@fresh/core/runtime": "./src/runtime/shared.ts", | ||
"@fresh/core/compat": "./src/compat/mod.ts", | ||
"@fresh/plugin-tailwind": "./plugin-tailwindcss/src/mod.ts", | ||
"@luca/esbuild-deno-loader": "jsr:@luca/esbuild-deno-loader@^0.10.3", | ||
"@preact/signals": "npm:@preact/signals@^1.2.3", | ||
|
@@ -71,6 +73,7 @@ | |
"twind/": "https://esm.sh/[email protected]/" | ||
}, | ||
"compilerOptions": { | ||
"lib": ["dom", "dom.asynciterable", "deno.ns"], | ||
"jsx": "precompile", | ||
"jsxImportSource": "preact", | ||
"jsxPrecompileSkipElements": ["a", "img", "source", "body", "html", "head"] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
// Compat with older Fresh versions | ||
export { | ||
type AppProps, | ||
defineApp, | ||
defineLayout, | ||
defineRoute, | ||
type ErrorPageProps, | ||
type Handler, | ||
type Handlers, | ||
type LayoutProps, | ||
type RouteContext, | ||
type UnknownPageProps, | ||
} from "./server.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.