first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
/* global WorkerGlobalScope */
/** @typedef {import("../index").EXPECTED_ANY} EXPECTED_ANY */
// Send messages to the outside, so plugins can consume it.
/**
* @param {string} type type
* @param {EXPECTED_ANY=} data data
*/
function sendMsg(type, data) {
if (typeof self !== "undefined" && (typeof WorkerGlobalScope === "undefined" || !(self instanceof WorkerGlobalScope))) {
self.postMessage({
type: "webpack".concat(type),
data: data
}, "*");
}
}
export default sendMsg;