@remix_labs/machine-starter 2.2683.0-dev → 2.2685.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/common.js +0 -3
- package/groovebox_build.js +1 -1
- package/index.js +7 -2
- package/machine-wasm.worker.js +2 -0
- package/package.json +2 -2
package/common.js
CHANGED
|
@@ -120,9 +120,6 @@ async function StartWASM2(hub, config) {
|
|
|
120
120
|
"interceptFFI": config.interceptFFI,
|
|
121
121
|
"interceptDynloadFFI": config.interceptDynloadFFI,
|
|
122
122
|
"mixcore": config.mixcore,
|
|
123
|
-
"mixrtCode": config.mixrtCode
|
|
124
|
-
// can be: base64-encoded string, Uint8Array, or a URL as string
|
|
125
|
-
// (http, https, data)
|
|
126
123
|
};
|
|
127
124
|
worker.postMessage(config_msg, [ channel.port ]);
|
|
128
125
|
setupLocalFFIs(hub, config, localFFIfuns); // don't await!
|
package/groovebox_build.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var GROOVEBOX_BUILD = "
|
|
1
|
+
var GROOVEBOX_BUILD = "2922";
|
|
2
2
|
export { GROOVEBOX_BUILD }
|
package/index.js
CHANGED
|
@@ -3,10 +3,15 @@ function workerify(code) {
|
|
|
3
3
|
return new Worker(URL.createObjectURL(blob));
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
import MachineWASMWorker from './machine-wasm.worker.
|
|
6
|
+
import MachineWASMWorker from './machine-wasm.worker.js?worker&inline';
|
|
7
7
|
|
|
8
8
|
function GetMachineWASMWorker() {
|
|
9
|
-
|
|
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
|
+
}
|
|
10
15
|
}
|
|
11
16
|
|
|
12
17
|
globalThis.GetMachineWASMWorker = GetMachineWASMWorker;
|