-
Notifications
You must be signed in to change notification settings - Fork 3
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
feat: integrate vite runtime #155
Merged
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
696621a
fix(vite-node-miniflare): use `ssr.optimizeDeps` for vite-node
hi-ogawa 39cddc4
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa f916f85
fix: optimizeDeps.exclude for node deps
hi-ogawa 21b2889
fix: resolve.conditions browser for react-dom/server
hi-ogawa 4129b00
chore: comment
hi-ogawa 2a5b25a
chore: direct import "react-dom/server.browser"
hi-ogawa 8b74dd4
fix: fix pre-bundle externalization + fix "require" esbuild banner
hi-ogawa 46bfac3
chore: remove optimizeDeps.force for debuggin
hi-ogawa 8bd55cd
chore: comment
hi-ogawa 9b70f49
chore: comment
hi-ogawa 8f56565
chore: comment
hi-ogawa fc2d72b
chore: "serve" only
hi-ogawa 190305e
chore: comment
hi-ogawa 6128685
chore: remove redundant noDiscovery
hi-ogawa 6e7cdeb
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa c415228
chore(deps): vite 5.1.0-beta.0
hi-ogawa c337335
Merge remote-tracking branch 'origin/fix-vite-node-ssr-optimizeDeps' …
hi-ogawa d79805e
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa 4781972
feat: move config to plugin
hi-ogawa b4477d3
chore: more examples
hi-ogawa 808ee5c
chore: more
hi-ogawa 0fe2858
chore: remove unused
hi-ogawa 5484643
chore: cleanup react-dom import
hi-ogawa 599be33
chore: use sapphi-red's prebuilt vite
hi-ogawa 385dc74
wip: simple integration without hmr/invalidation
hi-ogawa 6337df8
fix: disable installSourcemapsSupport
hi-ogawa bf9efdf
fix: tweak optimizeDeps for remix dep cjs
hi-ogawa 62a70c4
chore: lint
hi-ogawa 8b45d0f
chore: comment
hi-ogawa cc0aee8
chore: manual invalidation
hi-ogawa 9fd7a29
test: xfail sourcemap
hi-ogawa 2dd0ecf
feat: handle HMRPayload on client
hi-ogawa e5eb876
chore: todo
hi-ogawa da12968
wip: fix stack trace
hi-ogawa a6d4c76
wip: try newAsyncFunction
hi-ogawa e5a2219
chore: comment
hi-ogawa 2dcd233
chore: comment
hi-ogawa dfe98ac
chore: update build
hi-ogawa 930f20f
wip: prepareStackTrace
hi-ogawa 83a36ce
wip: struggle
hi-ogawa fa739bc
fix: fix source map by two empty lines
hi-ogawa 2f6337f
chore: remove local build
hi-ogawa ace8ef1
chore: lint
hi-ogawa b4938df
chore: remove unused
hi-ogawa 9bf1c7d
chore: comment
hi-ogawa 596b232
chore: prebuilt vite
hi-ogawa 45c5f4c
chore: use custom fetchModule to avoid two empty lines injection
hi-ogawa 748f523
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa b4a8f10
Merge branch 'fix-vite-node-ssr-optimizeDeps' into refactor-vite-runtime
hi-ogawa 9702304
chore: update vite
hi-ogawa 24f47ac
chore: update vite
hi-ogawa 38ee21b
chore: remove unused
hi-ogawa 9b40a28
fix: back to `moduleCache.invalidateDepTree` without SSR HMR
hi-ogawa 95d6705
feat: optional ssr hmr (disabled by default)
hi-ogawa c97a158
chore: log
hi-ogawa 8b32d19
chore: comment
hi-ogawa 322c69e
refactor: obtain HMRHandler from onUpdate callback
hi-ogawa fda6e52
chore: typing
hi-ogawa ec4a93f
chore: vite beta
hi-ogawa 37e8fbc
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa c5c5f62
chore: remove unused
hi-ogawa eee7c16
chore: remove deprecated `optimizeDeps.disabled`
hi-ogawa e4dc5a2
Merge branch 'main' into fix-vite-node-ssr-optimizeDeps
hi-ogawa 4ffec98
Merge branch 'fix-vite-node-ssr-optimizeDeps' into refactor-vite-runtime
hi-ogawa 8889857
chore: comment
hi-ogawa e165313
chore: comment
hi-ogawa 2ad4f3c
chore: type
hi-ogawa 64b6ba9
chore: comment
hi-ogawa 68412a2
Merge branch 'main' into refactor-vite-runtime
hi-ogawa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Previously
vite-node
was providingexports
etc... in global, so it was magically working.https://github.com/vitest-dev/vitest/blob/5ed537f03ea33df3516e530b55a5c1f0fc219e24/packages/vite-node/src/client.ts#L392-L395
Now, vite-runtime doesn't provide these out-of-the-box, so we get this error unless
cookie
etc... are pre-bundled.