Skip to content

Commit 770b5a6

Browse files
Add webgpu support (#7698)
Fixes #7695 [WebGPU is the successor to WebGL](https://developer.mozilla.org/en-US/docs/Web/API/WebGPU_API#:~:text=WebGPU%20is%20the%20successor%20to%20WebGL%2C%20providing%20better%20compatibility%20with%20modern%20GPUs), with libraries moving to support it. Cirq's TS environment hasn't installed the types library for WebGPU, causing package upgrades to fail. --------- Co-authored-by: Pavol Juhas <juhas@google.com>
1 parent 72c728a commit 770b5a6

File tree

6 files changed

+330
-328
lines changed

6 files changed

+330
-328
lines changed

cirq-web/cirq_web/dist/bloch_sphere.bundle.js

Lines changed: 143 additions & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cirq-web/cirq_web/dist/circuit.bundle.js

Lines changed: 143 additions & 143 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cirq-web/cirq_web/package-lock.json

Lines changed: 37 additions & 36 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cirq-web/cirq_web/package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,21 @@
1212
},
1313
"devDependencies": {
1414
"@types/jsdom": "^21.1.7",
15-
"@types/node": "^24.0.8",
15+
"@types/node": "^24.7.0",
1616
"@types/pngjs": "^6.0.0",
1717
"@types/temp": "^0.9.0",
18-
"@types/three": "^0.179.0",
18+
"@types/three": "^0.180.0",
19+
"@webgpu/types": "^0.1.63",
1920
"@vitest/coverage-v8": "^2.1.1",
2021
"canvas": "^3.2.0",
2122
"gts": "^6.0.2",
2223
"jsdom": "^26.0.0",
2324
"pixelmatch": "^7.0.0",
2425
"pngjs": "^7.0.0",
25-
"puppeteer": "^24.1.0",
26+
"puppeteer": "^24.23.0",
2627
"rimraf": "^6.0.1",
2728
"temp": "^0.9.4",
28-
"three": "^0.179.1",
29+
"three": "^0.180.0",
2930
"ts-mock-imports": "^1.3.7",
3031
"typescript": "^5.7.3",
3132
"vite": "^5.4.0",

cirq-web/cirq_web/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
"sourceMap": false,
1313
"outDir": "build",
1414
"moduleResolution": "Bundler",
15-
"types": ["vitest/globals"]
15+
"types": ["vitest/globals", "@webgpu/types"]
1616
},
1717
"include": [
1818
"e2e/**/*.ts",

cirq-web/cirq_web/vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const common = {
99
rollupOptions: {
1010
output: {
1111
inlineDynamicImports: true,
12-
formats: ['iife'],
12+
format: 'iife',
1313
},
1414
},
1515
},

0 commit comments

Comments
 (0)