amis-rpc-design/node_modules/@babel/register/lib/is-in-register-worker.js

10 lines
333 B
JavaScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
"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