Skip to content

Commit

Permalink
Editor: use importmap for app/index.html (#28195)
Browse files Browse the repository at this point in the history
  • Loading branch information
linbingquan committed Apr 23, 2024
1 parent c5c42fb commit 7376a8d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion editor/js/libs/app/index.html
Expand Up @@ -18,9 +18,16 @@
</style>
</head>
<body ontouchstart="">
<script type="importmap">
{
"imports": {
"three": "./js/three.module.js"
}
}
</script>
<script type="module">

import * as THREE from './js/three.module.js';
import * as THREE from 'three';
import { APP } from './js/app.js';

window.THREE = THREE; // Used by APP Scripts.
Expand Down

0 comments on commit 7376a8d

Please sign in to comment.