feat: fixed viewer & objectloader build configs
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
To ensure this example runs correctly, please serve this file from a local http
|
||||
server - if you manually open the file in a browser, it might not work.
|
||||
</p>
|
||||
<button onclick="loadData()">PRESS ME</button>
|
||||
<button type="button" onclick="loadData()">PRESS ME</button>
|
||||
</body>
|
||||
|
||||
<script src="script.js" type="module"></script>
|
||||
<script src="./script.js" type="module"></script>
|
||||
</html>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import ObjectLoader from '../../index.js'
|
||||
import ObjectLoader from './objectloader.web.js'
|
||||
window.ObjectLoader = ObjectLoader
|
||||
|
||||
// let loader = new ObjectLoader({serverUrl:"https://latest.speckle.dev", streamId:"16d73b756a", objectId:"99b20746460c4369f25e08e92c988a9d"})
|
||||
|
||||
+1
-2
@@ -1,7 +1,6 @@
|
||||
// Since Node v<18 does not provide fetch, we need to pass it in the options object. Note that fetch must return a WHATWG compliant stream, so cross-fetch won't work, but node/undici's implementation will.
|
||||
|
||||
import { fetch } from 'undici'
|
||||
import ObjectLoader from '../../index.js'
|
||||
import ObjectLoader from '../../dist/objectloader.js'
|
||||
|
||||
const loader = new ObjectLoader({
|
||||
serverUrl: 'https://latest.speckle.dev',
|
||||
Reference in New Issue
Block a user