-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: support
vite-tsconfig-paths
(#231)
- Loading branch information
Showing
13 changed files
with
122 additions
and
12 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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Counter from './islands/Counter' | ||
|
||
export default function SomeComponent() { | ||
return <Counter /> | ||
} |
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,3 @@ | ||
export default function Counter() { | ||
return <div>Counter</div> | ||
} |
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,20 @@ | ||
import { jsxRenderer } from 'hono/jsx-renderer' | ||
import { HasIslands } from '../../../src/server' | ||
|
||
export default jsxRenderer( | ||
({ children }) => { | ||
return ( | ||
<html> | ||
<body> | ||
{children} | ||
<HasIslands> | ||
<script type='module' async src='/app/client.ts'></script> | ||
</HasIslands> | ||
</body> | ||
</html> | ||
) | ||
}, | ||
{ | ||
docType: false, | ||
} | ||
) |
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,5 @@ | ||
import Counter from '@mocks/SomeComponent' | ||
|
||
export default function HasIslands() { | ||
return <Counter /> | ||
} |
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,3 @@ | ||
export default function HasNoIslands() { | ||
return <h1>No Islands</h1> | ||
} |
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,3 @@ | ||
{ | ||
"extends": "../tsconfig.json", | ||
} |
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
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
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. | ||
# yarn lockfile v1 | ||
# bun ./bun.lockb --hash: 01AE2360C20256F8-361f85d0cfaa2723-33B136C6C40B62C1-a2a2739cf72fa158 | ||
# bun ./bun.lockb --hash: 543A293A66C80C95-f7ab18b32b9678e2-D7579C357F066BE3-94c80f775e73166d | ||
|
||
|
||
"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.24.7": | ||
|
@@ -1567,7 +1567,7 @@ debug@^3.2.7: | |
dependencies: | ||
ms "^2.1.1" | ||
|
||
debug@^4.0.0, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5: | ||
debug@^4.0.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@^4.3.5: | ||
version "4.3.7" | ||
resolved "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz" | ||
integrity sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ== | ||
|
@@ -2461,6 +2461,11 @@ globby@^11.0.1, globby@^11.1.0: | |
fast-glob "^3.2.9" | ||
array-union "^2.1.0" | ||
|
||
globrex@^0.1.2: | ||
version "0.1.2" | ||
resolved "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz" | ||
integrity sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg== | ||
|
||
gonzales-pe@^4.3.0: | ||
version "4.3.0" | ||
resolved "https://registry.npmjs.org/gonzales-pe/-/gonzales-pe-4.3.0.tgz" | ||
|
@@ -5183,6 +5188,11 @@ ts-interface-checker@^0.1.9: | |
resolved "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz" | ||
integrity sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA== | ||
|
||
tsconfck@^3.0.3: | ||
version "3.1.3" | ||
resolved "https://registry.npmjs.org/tsconfck/-/tsconfck-3.1.3.tgz" | ||
integrity sha512-ulNZP1SVpRDesxeMLON/LtWM8HIgAJEIVpVVhBM6gsmvQ8+Rh+ZG7FWGvHh7Ah3pRABwVJWklWCr/BTZSv0xnQ== | ||
|
||
tslib@^1.9.0: | ||
version "1.14.1" | ||
resolved "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz" | ||
|
@@ -5441,6 +5451,15 @@ [email protected]: | |
pathe "^1.1.1" | ||
picocolors "^1.0.0" | ||
|
||
vite-tsconfig-paths@^5.0.1: | ||
version "5.0.1" | ||
resolved "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-5.0.1.tgz" | ||
integrity sha512-yqwv+LstU7NwPeNqajZzLEBVpUFU6Dugtb2P84FXuvaoYA+/70l9MHE+GYfYAycVyPSDYZ7mjOFuYBRqlEpTig== | ||
dependencies: | ||
debug "^4.1.1" | ||
globrex "^0.1.2" | ||
tsconfck "^3.0.3" | ||
|
||
vitest@^1.4.0: | ||
version "1.6.0" | ||
resolved "https://registry.npmjs.org/vitest/-/vitest-1.6.0.tgz" | ||
|