Skip to content
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: experimental Vite Runtime API #12165

Merged
merged 34 commits into from
Feb 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
3ba7436
feat: add vite-node into the core
sheremet-va Jan 19, 2024
c0de2ff
fix: normalize entry url before calling fetchModule
sheremet-va Jan 20, 2024
2423810
refactor: expose more types, fix caching with the query issue, requir…
sheremet-va Jan 21, 2024
a91fc5a
chore: export HMRRuntimeConnection
sheremet-va Jan 21, 2024
8f4b6d1
refactor: remove cleanup function from onUpdate
sheremet-va Jan 22, 2024
090246e
refactor: remove processImport from the public API
sheremet-va Jan 22, 2024
95434b4
test: add test for HMR on files imported with queries
sheremet-va Jan 22, 2024
a6fd97b
feat: support source map
sheremet-va Jan 22, 2024
1475aeb
chore: add check for types chunk
sheremet-va Jan 22, 2024
f83f0e3
test: remove only
sheremet-va Jan 22, 2024
3205c54
chore: change default to use node interceptor if available
sheremet-va Jan 22, 2024
d8fce47
refactor: expose "fetchModule" via a "vite" entypoint, improve types
sheremet-va Jan 25, 2024
2949d96
fix: allow several runtimes to influece source maps
sheremet-va Jan 29, 2024
bcfe993
fix: externalize network urls by default
sheremet-va Jan 29, 2024
aa5354e
chore: cleanup
sheremet-va Jan 29, 2024
db80f51
Merge branch 'main' into feat/vite-node-core
sheremet-va Jan 29, 2024
3f044b0
chore: cleanup
sheremet-va Jan 29, 2024
0b31ff7
refactor: add more jsdocs to vite runtime, add isDestroyed
sheremet-va Jan 30, 2024
84283ff
docs: add documentation about vite runtime
sheremet-va Jan 30, 2024
0e0263e
chore: typo
patak-dev Jan 30, 2024
ff81b02
chore: typo
patak-dev Jan 30, 2024
fb46227
chore: typo
patak-dev Jan 30, 2024
bab1559
chore: wording
patak-dev Jan 30, 2024
34f2363
chore: wording
patak-dev Jan 30, 2024
c58fbe0
chore: typo
patak-dev Jan 30, 2024
cf38151
chore: typo
patak-dev Jan 30, 2024
9764b51
chore: warning about potential changes in Vite 5.2
patak-dev Jan 31, 2024
3e18bb7
chore: wording
patak-dev Jan 31, 2024
294a50a
test: correct hmr ports
sheremet-va Jan 31, 2024
fea94b5
test: fix ports
sheremet-va Jan 31, 2024
0573c0d
chore: review feedback
sheremet-va Jan 31, 2024
4c0d3fa
docs: add experimental jsdoc to runtime APIs available from "vite" en…
sheremet-va Jan 31, 2024
1db9c01
refactor: update source map folder name
sheremet-va Feb 1, 2024
f7c3c25
chore: add a link to the discussion in runtime docs
sheremet-va Feb 1, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
test: fix ports
sheremet-va committed Jan 31, 2024

Verified

This commit was signed with the committer’s verified signature. The key has expired.
MylesBorins Myles Borins
commit fea94b53e79990e1104651d9fb22d6954284b197
6 changes: 3 additions & 3 deletions playground/test-utils.ts
Original file line number Diff line number Diff line change
@@ -38,9 +38,9 @@ export const ports = {
'ssr-webworker': 9605,
'proxy-bypass': 9606, // not imported but used in `proxy-hmr/vite.config.js`
'proxy-bypass/non-existent-app': 9607, // not imported but used in `proxy-hmr/other-app/vite.config.js`
'proxy-hmr': 9606, // not imported but used in `proxy-hmr/vite.config.js`
'proxy-hmr/other-app': 9607, // not imported but used in `proxy-hmr/other-app/vite.config.js`
'ssr-conditions': 9608,
'proxy-hmr': 9616, // not imported but used in `proxy-hmr/vite.config.js`
'proxy-hmr/other-app': 9617, // not imported but used in `proxy-hmr/other-app/vite.config.js`
'ssr-conditions': 9620,
'css/postcss-caching': 5005,
'css/postcss-plugins-different-dir': 5006,
'css/dynamic-import': 5007,