chore(deps): update @rollup/plugin-node-resolve to v14 (#10078) (3390c87), closes #10078
refactor: config hook helper function (#9982) (9c1be10), closes #9982
refactor: optimize async and await in code (#9854) (31f5ff3), closes #9854
3.1.0 (2022-09-05)
Main Changes
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)
}
}
}
}
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.2.4 to 3.1.2.
Release notes
Sourced from vite's releases.
Changelog
Sourced from vite's changelog.
... (truncated)
Commits
cda361c
release: v3.1.223a51c6
fix: use isOptimizable to ensure version query (#10141)d324181
release: v3.1.1f541239
fix: no quote on attrs (#10117)5d56e42
fix: replace white with reset (#10104)caf00c8
fix(deps): update all non-major dependencies (#10077)3390c87
chore(deps): update@rollup/plugin-node-resolve
to v14 (#10078)9e65a41
chore: cleanup old changelogs (#10056)9de9bc4
fix: proxy to secured websocket server (#10045)1b822d0
fix: ensure version query for relative node_modules imports (#10016)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)