File size: 623 Bytes
bee6636
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/// <reference types="@rspack/core/module" />
import "../lib/index.d.ts";

self.$scramjetLoadController = function () {
	return require("./controller/index");
};

self.$scramjetLoadClient = function (config) {
	const client = require("./client/index");
	client.clientInitHook(config);

	return client;
};

self.$scramjetLoadWorker = function () {
	return require("./worker/index");
};

export const $scramjetVersion = {
	build: COMMITHASH,
	version: VERSION,
};

self.$scramjetVersion = $scramjetVersion;

if ("document" in self && document?.currentScript) {
	document.currentScript.remove();
}