10 lines
333 B
JavaScript
10 lines
333 B
JavaScript
|
"use strict";
|
||
|
const envVarName = "___INTERNAL___IS_INSIDE_BABEL_REGISTER_WORKER___";
|
||
|
const envVarValue = "yes_I_am";
|
||
|
exports.markInRegisterWorker = env => Object.assign({}, env, {
|
||
|
[envVarName]: envVarValue
|
||
|
});
|
||
|
exports.isInRegisterWorker = process.env[envVarName] === envVarValue;
|
||
|
|
||
|
//# sourceMappingURL=is-in-register-worker.js.map
|