Vite now uses parse5, which parses HTML in the same way as the latest browser versions. This migration gives us a more robust HTML story moving forward (#9678).
Vite now supports using objects as hooks to change execution order (#9634). Check out the RFC and the implementation upstream at rollup/rollup#4600 for details and rationale.
import { resolve } from 'node:path';
import { readdir } from 'node:fs/promises';
export default function getFilesOnDisk() {
return {
name: 'getFilesOnDisk',
writeBundle: {
// run this hook sequentially even if the hook is parallel
sequential: true,
// push this hook to the 'post' stage, after all normal hooks
order: 'post',
// hook implementation
async handler({ dir }) {
const topLevelFiles = await readdir(resolve(dir))
console.log(topLevelFiles)
}
}
}
}
Note
After Vite 3.1, you are no longer going to see [vite] hot updated log messages in the browser console. These messages have been moved to the debug channel (#8855). Check your browser docs to show debug logs.
This version was pushed to npm by vitebot, a new releaser for vite since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps vite from 2.7.10 to 3.1.0.
Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
b1ad82d
release: v3.1.04158b98
release: v3.1.0-beta.27b618f0
fix(types): mark explicitImportRequired optional and experimental (#9962)86bf776
fix(hmr): duplicated modules because of query params mismatch (fixes #2255) (...091537c
chore!: bump esbuild to 0.15.6 (#9934)8f315a2
chore(deps): update dependency postcss-import to v15 (#9929)9ac5075
fix(ssr): enableinlineDynamicImports
when input has length 1 (#9904)632fedf
feat(css): format error (#9909)c9521e7
fix(css): remove css-post plugin sourcemap (#9914)37ac91e
perf: bundle create-vite (#9034)Maintainer changes
This version was pushed to npm by vitebot, a new releaser for vite since your current version.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)