Commit 2c37a83
committed
fix: resolve bare ES module specifiers in widget iframe for Three.js
Add import map to iframe shell mapping common libraries (three, gsap, d3,
chart.js) to esm.sh CDN URLs so bare specifiers like `import "three"` resolve
correctly. Auto-detect ES module syntax in dynamically injected scripts and
promote them to type="module" when import/export statements are present.
Update skill instructions to prefer the ES module pattern for Three.js.1 parent e8bdf7b commit 2c37a83
File tree
2 files changed
+33
-5
lines changed- apps
- agent/skills/advanced-visualization
- app/src/components/generative-ui
2 files changed
+33
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
672 | 680 | | |
673 | 681 | | |
674 | 682 | | |
| |||
Lines changed: 24 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
428 | 428 | | |
429 | 429 | | |
430 | 430 | | |
431 | | - | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
471 | 477 | | |
472 | 478 | | |
473 | 479 | | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
474 | 494 | | |
475 | 495 | | |
476 | 496 | | |
| |||
590 | 610 | | |
591 | 611 | | |
592 | 612 | | |
593 | | - | |
594 | | - | |
| 613 | + | |
| 614 | + | |
595 | 615 | | |
596 | 616 | | |
597 | 617 | | |
| |||
680 | 700 | | |
681 | 701 | | |
682 | 702 | | |
683 | | - | |
| 703 | + | |
684 | 704 | | |
685 | 705 | | |
686 | 706 | | |
| |||
0 commit comments