Modernise build tooling (Node 22, ESLint 9, Vitest, Vite)#271
Merged
ryanseddon merged 6 commits intomasterfrom Feb 25, 2026
Merged
Modernise build tooling (Node 22, ESLint 9, Vitest, Vite)#271ryanseddon merged 6 commits intomasterfrom
ryanseddon merged 6 commits intomasterfrom
Conversation
Owner
ryanseddon
commented
Feb 25, 2026
- Upgrade to Node 22 LTS
- Replace Karma/Mocha with Vitest (runs in real browsers via Playwright - Chromium locally, Firefox in CI)
- Replace Webpack/Babel with Vite for library builds (outputs ESM + UMD)
- Upgrade ESLint to v9 with flat config
- Remove legacy config files (webpack.config.js, karma.conf.js, wallaby.conf.js)
- Add vitest.config.js with Playwright browser mode - Install vitest, @vitest/browser-playwright, @playwright/test - Multi-browser support: Chromium (all), Firefox (CI), Safari (Mac) - Create test/setup.js for test utilities - Migrate tests from chai assertions to Vitest expect - Update test script to run vitest - Fix legacy React API issues in tests BREAKING CHANGE: Tests now run in real browsers instead of jsdom Remove .ryan/ from tracking (already in global gitignore)
- Add vite.config.js for library builds (ESM + UMD) - Add vite example dev server with react plugin - Update package.json with proper exports (main, module, types) - Update build script to use Vite instead of Babel - Remove legacy webpack.config.js - Update example/app.jsx for React 18 createRoot API
- Fix lint errors: unused imports and eslint-disable directives
fix: add Firefox to Playwright CI installation fix: use --with-deps flag for Playwright browsers
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.