| 1 | /** |
| 2 | * This file wraps the compiled ES6 module implementation of register so |
| 3 | * that it can be used both from a standard CommonJS environment, and also |
| 4 | * from a compiled Babel import. |
| 5 | */ |
| 6 | |
| 7 | if (USE_ESM) { |
| 8 | module.exports = require("./experimental-worker"); |
| 9 | } else if (process.env.BABEL_8_BREAKING) { |
| 10 | module.exports = require("./experimental-worker"); |
| 11 | } else { |
| 12 | exports = module.exports = function (...args) { |
| 13 | return register(...args); |
| 14 | }; |
| 15 | exports.__esModule = true; |
| 16 | |
| 17 | const node = require("./nodeWrapper"); |
| 18 | const register = node.default; |
| 19 | |
| 20 | Object.assign(exports, node); |
| 21 | } |