Skip to content

chore(devtools): switch from webpack/jest to vite/vitest#815

Open
layershifter wants to merge 5 commits intomicrosoft:mainfrom
layershifter:chore/devtools-vite
Open

chore(devtools): switch from webpack/jest to vite/vitest#815
layershifter wants to merge 5 commits intomicrosoft:mainfrom
layershifter:chore/devtools-vite

Conversation

@layershifter
Copy link
Member

@layershifter layershifter commented Mar 13, 2026

Summary

  • Replace @nx/webpack:webpack build executor with @nx/vite:build
  • Replace @nx/jest:jest test executor with @nx/vitest:test
  • Remove .babelrc, webpack.config.js, jest.config.ts, jest.setup.js
  • Add vite.config.ts and vitest.setup.ts (replaces jest-chrome mocks with vi.fn())
  • Move index.html from src/ to project root (Vite convention)
  • Remove @nx/webpack dependency (no longer used by any project, -64 packages / ~43 MB)
  • Bundle size reduced by ~22% (508 KB → 399 KB, gzip 151 KB → 121 KB)

Test plan

  • nx test @griffel/devtools — 13/13 tests pass
  • nx build @griffel/devtools — builds successfully
  • Verified build output contains all Chrome extension files (manifest.json, icons, devtools-page, content-script)

🤖 Generated with Claude Code

Replace @nx/webpack:webpack build and @nx/jest:jest test executors with
@nx/vite:build and @nx/vitest:test. Removes babel, webpack, and jest
config files in favor of a single vite.config.ts. Bundle size reduced
by ~22%.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@layershifter layershifter requested a review from a team as a code owner March 13, 2026 12:11
@github-actions
Copy link

github-actions bot commented Mar 13, 2026

📊 Bundle size report

✅ No changes found

layershifter and others added 4 commits March 13, 2026 13:12
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
No projects use the webpack executor anymore. Removes 64 packages (~43 MB).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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