Skip to content

feat(Build): modernize build and test tooling with Vite/Vitest & oxlint/oxfmt#3435

Open
daker wants to merge 5 commits intoKitware:masterfrom
daker:vite-vitest-migration
Open

feat(Build): modernize build and test tooling with Vite/Vitest & oxlint/oxfmt#3435
daker wants to merge 5 commits intoKitware:masterfrom
daker:vite-vitest-migration

Conversation

@daker
Copy link
Collaborator

@daker daker commented Mar 3, 2026

Context

This PR completes a tooling migration from the legacy webpack/rollup + Karma/Tape setup to a unified Vite + Vitest stack. It updates local development, build output, test execution, and CI integration to run on the new toolchain.

Results

  • Reduce maintenance overhead from multiple legacy build/test systems.
  • Standardize on a modern, faster toolchain for both local and CI workflows.
  • Improve consistency between build and test environments by sharing Vite-based config.
  • Remove UMD build.
  • Everything should works as before.

Changes

  • Replaced legacy build configuration with vite.config.js.
  • Added Vitest browser-runner configuration via vitest.config.js.
  • Migrated test infrastructure and tests to Vitest.
  • Removed old webpack, rollup-legacy, and Karma-related configs/plugins/utilities.
  • Migrate ExampleRunner to vite devserver.
  • Updated GitHub Actions workflows to run the Vite/Vitest pipeline.
  • Updated dependencies and lockfile to reflect the new build/test stack.
  • Documentation and TypeScript definitions were updated to match those changes

PR and Code Checklist

  • semantic-release commit messages
  • Run npm run reformat to have correctly formatted code

Testing

  • This change adds or fixes unit tests
  • Tested environment:
    • vtk.js:
    • OS:
    • Browser:

@daker daker force-pushed the vite-vitest-migration branch 29 times, most recently from 65d7ab0 to 825c998 Compare March 5, 2026 12:40
@daker daker marked this pull request as ready for review March 5, 2026 12:51
@daker daker changed the title Vite vitest migration feat(Build): modernize build and test tooling with Vite + Vitest Mar 5, 2026
@daker
Copy link
Collaborator Author

daker commented Mar 5, 2026

@finetjul @jourdain it's ready for review

@daker daker force-pushed the vite-vitest-migration branch from 152d322 to 25c83d1 Compare March 5, 2026 15:04
@daker daker changed the title feat(Build): modernize build and test tooling with Vite + Vitest feat(Build): modernize build and test tooling with Vite/Vitest & oxlint/oxfmt Mar 5, 2026
@daker daker force-pushed the vite-vitest-migration branch 6 times, most recently from 9e32529 to a2611fb Compare March 6, 2026 10:28
@daker daker force-pushed the vite-vitest-migration branch from a2611fb to 7c1e11b Compare March 6, 2026 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant