Bump eslint, jsdom, vite, and webdriverio #31
Merged
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.
Specifically:
I'm trying to bump vite to 5.0.5 and vitest and its @vitest/* helpers to 1.0.0, but I'm currently having problems.
pnpm test
will work fine, butpnpm test -- --browser
is broken.When bumping to vite 5.0.5 by itself (
pnpm up --latest vite
):When bumping to vitest, et. al. v1.0.0 (
vitest @vitest/browser @vitest/coverage-istanbul @vitest/coverage-v8 @vitest/ui 1.0.0
):Bumping both results in the same Reload Error, both in my existing project and a fresh project. Running
pnpm add -D @vitest/utils
made no difference.I wonder if this will actually fix everything, looks like I'll be able to try it shortly after I write this:
peerDependencies
versions vitest-dev/vitest#4654Here's what I've discovered so far from investigating the problem:
Tracing back from vitest_browser/index-JmUxqpfn.js:958:36, the source appears to be:
Here are the references to prebundling:
Setting the
legacy.proxySsrExternalModules
config option mentioned in the migration guide doesn't seem to help:It seems this is the part of the @vitest/browser package responsible for configuring dependency optimization:
The current vitest version locked for this project is v1.0.0-beta.4. These segments of that change appeared long before then:
This one, however, didn't appear until vitest v1.0.0-beta.5: