Skip to content

Instantly share code, notes, and snippets.

@cecilemuller
Created June 17, 2024 16:25
Show Gist options
  • Save cecilemuller/6a9ada9e20ff34cdb065cfa2ad31ca16 to your computer and use it in GitHub Desktop.
Save cecilemuller/6a9ada9e20ff34cdb065cfa2ad31ca16 to your computer and use it in GitHub Desktop.
ESM Import Map for NPM-installed packages
<script type="importmap">
{
"imports": {
"lil-gui": "./node_modules/lil-gui/dist/lil-gui.esm.js",
"three": "./node_modules/three/src/Three.js",
"three/addons/": "./node_modules/three/examples/jsm/",
"three/nodes": "./node_modules/three/examples/jsm/nodes/Nodes.js"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment