Migrate to Vite#707
Merged
Merged
Conversation
Open
Contributor
There was a problem hiding this comment.
Pull request overview
Migrates the project’s build/dev/test toolchain from Webpack + Jest to Vite + Vitest, aligning the repo with solidos-toolkit’s Vite integration and introducing a Vite-based pane development sandbox.
Changes:
- Remove Webpack/Babel/Jest configuration and legacy dev sandbox assets.
- Add Vite/Vitest configuration (including coverage + setup file) and update unit tests/snapshots accordingly.
- Update package entrypoints/exports and npm scripts to use Vite for build/dev/watch.
Reviewed changes
Copilot reviewed 25 out of 26 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| webpack.dev.config.mjs | Removed legacy Webpack dev-server configuration. |
| webpack.config.mjs | Removed legacy Webpack production bundling configuration. |
| vite.config.mts | Added Vite + Vitest configuration and dev-sandbox aliases/plugins. |
| tsconfig.test.json | Updated test TS config to include Node types. |
| tsconfig.dev.json | Removed legacy dev TS config used by Webpack/ts-loader. |
| test/unit/trustedApplications/trustedApplications.test.ts | Migrated test imports from Jest env to Vitest. |
| test/unit/trustedApplications/snapshots/trustedApplications.test.ts.snap | Updated snapshot header/keys for Vitest. |
| test/unit/social/triage.test.ts | Migrated Jest mocking (jest.fn) to Vitest (vi.fn). |
| test/unit/outline/propertyViews.test.ts | Migrated test imports from Jest env to Vitest. |
| test/unit/outline/manager.test.ts | Migrated test imports from Jest env to Vitest. |
| test/setup.ts | Added Vitest setup (jest-dom integration + fetch mocking + globals). |
| test/helpers/setup.ts | Removed Jest-specific setup. |
| test/helpers/globals.js | Removed Jest global shims previously needed for UMD/global expectations. |
| src/outline/manager.js | Switched a global assignment from global to globalThis. |
| src/dev.ts | Added a Vite dev-sandbox pane entry that initializes the main page. |
| README.md | Updated development instructions for the Vite dev server/port. |
| package.json | Switched scripts to Vite/Vitest and updated package entrypoints/exports. |
| jest.config.mjs | Removed Jest configuration. |
| dev/pane/index.ts | Removed legacy dev pane loader. |
| dev/loader.ts | Removed legacy Webpack-based dev loader. |
| dev/index.html | Removed legacy dev HTML shell for Webpack dev-server. |
| dev/dev-mash.css | Removed legacy dev-only mash CSS bundle. |
| dev/dev-mash-utilities.css | Removed legacy dev-only utility CSS bundle. |
| dev/dev-light.css | Removed legacy dev-only light theme CSS bundle. |
| babel.config.mjs | Removed Babel configuration previously used for builds/tests. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Member
|
@NoelDeMartin take a look at copilot feedback. |
Member
Author
I already did, and replied/resolved the issues it raised :). |
This was referenced Jul 1, 2026
timea-solid
approved these changes
Jul 2, 2026
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
This PR is blocked by: