animate/webGl/my-threejs-test/node_modules/@parcel/workers/lib/childState.js

14 lines
442 B
JavaScript
Raw Normal View History

2024-06-24 09:24:00 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.child = void 0;
exports.setChild = setChild;
// This file is imported by both the WorkerFarm and child implementation.
// When a worker is inited, it sets the state in this file.
// This way, WorkerFarm can access the state without directly importing the child code.
let child = exports.child = null;
function setChild(c) {
exports.child = child = c;
}