Closed sophiedeziel closed 5 months ago
Run & review this pull request in StackBlitz Codeflow.
Visit the preview URL for this PR (updated for commit 62e7799):
https://gcode-preview--pr158-feature-demo-on-modu-wq88m6dq.web.app
(expires Mon, 10 Jun 2024 23:09:41 GMT)
🔥 via Firebase Hosting GitHub Action 🌎
Sign: 59bd114ae4847b32c2bba0b68620b9069a3e3531
awesome!
could the import map be changed into a single line with a script
tag and type=module
? Would that still work?
could the import map be changed into a single line with a script tag and type=module? Would that still work?
I can try to make it shorter, maybe by splitting in it's own file. But my understanding is that the importmap
type is a specific type and I'm not sure how to make this work with a type=module
instead.
I tried
<script type="importmap" src="importmaps.json"> </script>
and got
I dug deeper and found: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script/type/importmap
Closes https://github.com/remcoder/gcode-preview/issues/97
I tried updating to three.js v165 but the render of the lines did not work properly. So that will need to be fixed separately.