Project Init

This commit is contained in:
Muluhabt
2026-05-29 15:23:46 +03:00
commit 2fbc557aac
67387 changed files with 6063341 additions and 0 deletions

21
node_modules/@rspack/core/hot/emitter.js generated vendored Normal file
View File

@@ -0,0 +1,21 @@
function EventEmitter() {
this.events = {};
}
EventEmitter.prototype.on = function (eventName, callback) {
if (!this.events[eventName]) {
this.events[eventName] = [];
}
this.events[eventName].push(callback);
};
EventEmitter.prototype.emit = function (eventName) {
var args = Array.prototype.slice.call(arguments, 1);
if (this.events[eventName]) {
this.events[eventName].forEach(function (callback) {
callback.apply(null, args);
});
}
};
module.exports = new EventEmitter();