@remix_labs/machine-starter 2.1852.0-dev → 2.1867.0-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/groovebox_build.js +1 -1
- package/index.js +6 -4
- package/machine-wasm.worker.js +1 -1
- package/package.json +2 -2
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "1966";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/index.js
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
|
-
/*
|
|
2
1
|
function workerify(code) {
|
|
3
2
|
let blob = new Blob([code], {type: 'application/javascript'});
|
|
4
3
|
return new Worker(URL.createObjectURL(blob));
|
|
5
4
|
}
|
|
6
|
-
*/
|
|
7
5
|
|
|
8
6
|
import MachineWASMWorker from './machine-wasm.worker.js?worker&inline';
|
|
9
7
|
|
|
10
8
|
function GetMachineWASMWorker() {
|
|
11
|
-
|
|
12
|
-
|
|
9
|
+
// vite makes this into a constructor, but in webpack we get the raw buffer
|
|
10
|
+
if ((typeof MachineWASMWorker) === "function") {
|
|
11
|
+
return new MachineWASMWorker();
|
|
12
|
+
} else {
|
|
13
|
+
return workerify(MachineWASMWorker);
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
16
|
|
|
15
17
|
globalThis.GetMachineWASMWorker = GetMachineWASMWorker;
|