@truffle/compile-solidity
Version:
Compiler helper and artifact manager for Solidity files
12 lines • 644 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
// must polyfill AbortController to use axios >=0.20.0, <=0.27.2 on node <= v14.x
const node_abort_controller_1 = require("node-abort-controller");
// we're using the "dom" lib in this package, so these types are already
// defined, but their implementations are nonexistent when running under node <=
// v15.x, so we polyfill them here anyway
if (typeof global.AbortController === "undefined") {
global.AbortController = node_abort_controller_1.AbortController;
global.AbortSignal = node_abort_controller_1.AbortSignal;
}
//# sourceMappingURL=polyfill.js.map