UNPKG

508 BJavaScriptView Raw
1"use strict";
2// Webpack hack
3// tslint:disable no-eval
4Object.defineProperty(exports, "__esModule", { value: true });
5let implementation;
6function selectImplementation() {
7 return typeof __non_webpack_require__ === "function"
8 ? __non_webpack_require__("worker_threads")
9 : eval("require")("worker_threads");
10}
11function getImplementation() {
12 if (!implementation) {
13 implementation = selectImplementation();
14 }
15 return implementation;
16}
17exports.default = getImplementation;