amis-rpc-design/node_modules/@babel/register/lib/is-in-register-worker.js
2023-10-07 19:42:30 +08:00

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