-
-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Blocking issues: - [x] `polyfillModulePreload is deprecated. Use modulePreload.polyfill instead. (x6)` - [x] rscRsdwPlugin parse code is somehow incorrect, I think the code it receives is already a bundlered code, that's why `const index = code.indexOf('function requireAsyncModule(id)');` will get `-1` - [x] vite issue. vitejs/vite#18361 - [x] no styling in dev. 21_create-pages_standalone spec fails. - [x] react-error-boundary. ssr-catch-error spec fails. Other issues: - [x] proper fix for `resolve.conditions` hack - [x] proper fix for `vite-loader.ts` hack - [ ] drop `viteServer.hot`. #1012 (comment) --------- Co-authored-by: daishi <[email protected]> Co-authored-by: Daishi Kato <[email protected]> Co-authored-by: Tyler <[email protected]>
- Loading branch information
1 parent
25d418b
commit ec87f81
Showing
12 changed files
with
162 additions
and
315 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 |
---|---|---|
@@ -1,22 +1,7 @@ | ||
export default ({ mode }: { mode: string }) => { | ||
if (mode === 'development') { | ||
return { | ||
plugins: [ | ||
{ | ||
name: 'externalize-react-error-boundary', | ||
configResolved(config: any) { | ||
// TODO HACK temporary solution until v0.22.0 | ||
if ( | ||
config.cacheDir.endsWith( | ||
'node_modules/.vite/waku-dev-server-main', | ||
) | ||
) { | ||
config.ssr.noExternal = ['react-error-boundary']; | ||
} | ||
}, | ||
}, | ||
], | ||
}; | ||
} | ||
return {}; | ||
export default { | ||
ssr: { | ||
resolve: { | ||
conditions: ['module', 'node'], | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -20,6 +20,6 @@ | |
"autoprefixer": "10.4.20", | ||
"tailwindcss": "3.4.17", | ||
"typescript": "5.7.2", | ||
"vite": "5.4.10" | ||
"vite": "6.0.6" | ||
} | ||
} |
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
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,15 +1,17 @@ | ||
import { createServer as createViteServer } from 'vite'; | ||
|
||
import { fileURLToFilePath } from '../utils/path.js'; | ||
|
||
export const loadServerFile = async (fileURL: string) => { | ||
const vite = await createViteServer({ | ||
ssr: { | ||
external: ['waku'], | ||
}, | ||
server: { middlewareMode: true, watch: null }, | ||
}); | ||
try { | ||
return vite.ssrLoadModule(fileURLToFilePath(fileURL)); | ||
} finally { | ||
await vite.close(); | ||
await vite.ws.close(); | ||
} | ||
}; |
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 |
---|---|---|
|
@@ -29,6 +29,6 @@ | |
"shiki": "^1.24.4", | ||
"tailwindcss": "^3.4.17", | ||
"typescript": "^5.7.2", | ||
"vite": "5.4.10" | ||
"vite": "6.0.6" | ||
} | ||
} |
Oops, something went wrong.