Commit 2beca80
Webpack to Vite (#7687)
Resolves #7654, sunsetting Webpack support and introducing the more
modern Vite as the core bundler for typescript in Cirq.
Implementation notes:
- Added a custom `canvas` polyfill in `vitest.setup.ts`, allowing for
three.js to be tested without the browser environment. There have been
[discussions](vitest-dev/vitest#274) about
this in Vite and [external
packages](https://github.com/schirrel/vi-canvas-mock) which could offer
more context, but I opted to implement something custom considering that
package deps have been pain point.
- Testing and coverage matches 1:1 with old test criteria
- We need to bump the node version up in the CI workflow to support more
modern packages, bumped from v20 -> v22
---------
Co-authored-by: Pavol Juhas <juhas@google.com>1 parent 3b3cd7d commit 2beca80
File tree
33 files changed
+2820
-10674
lines changed- .github/workflows
- cirq-web/cirq_web
- dist
- html
- e2e
- bloch_sphere
- circuit
- src
- bloch_sphere
- components
- circuit
- components
33 files changed
+2820
-10674
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
400 | 400 | | |
401 | 401 | | |
402 | 402 | | |
403 | | - | |
| 403 | + | |
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
| |||
415 | 415 | | |
416 | 416 | | |
417 | 417 | | |
418 | | - | |
| 418 | + | |
419 | 419 | | |
420 | 420 | | |
421 | 421 | | |
| |||
430 | 430 | | |
431 | 431 | | |
432 | 432 | | |
433 | | - | |
| 433 | + | |
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| |||
447 | 447 | | |
448 | 448 | | |
449 | 449 | | |
450 | | - | |
| 450 | + | |
451 | 451 | | |
452 | 452 | | |
453 | 453 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
This file was deleted.
File renamed without changes.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments