| | |
| | | missingDependencies = {} |
| | | } = options; |
| | | if (missingDependencies === false) return false; |
| | | const caller = babelApi.caller(caller => caller?.name); |
| | | const caller = babelApi.caller(caller => caller == null ? void 0 : caller.name); |
| | | const { |
| | | log = "deferred", |
| | | inject = caller === "rollup-plugin-babel" ? "throw" : "import", |
| | |
| | | method, |
| | | methodName, |
| | | targets, |
| | | absoluteImports: absoluteImports ?? false, |
| | | absoluteImports: absoluteImports != null ? absoluteImports : false, |
| | | shouldInjectPolyfill, |
| | | debug: !!debug, |
| | | providerOptions: providerOptions |
| | |
| | | visitor, |
| | | |
| | | pre() { |
| | | var _provider$pre; |
| | | |
| | | debugLog = { |
| | | polyfills: new Map(), |
| | | found: false, |
| | |
| | | missingDeps: new Set() |
| | | }; // $FlowIgnore - Flow doesn't support optional calls |
| | | |
| | | provider.pre?.apply(this, arguments); |
| | | (_provider$pre = provider.pre) == null ? void 0 : _provider$pre.apply(this, arguments); |
| | | }, |
| | | |
| | | post() { |
| | | var _provider$post; |
| | | |
| | | // $FlowIgnore - Flow doesn't support optional calls |
| | | provider.post?.apply(this, arguments); |
| | | (_provider$post = provider.post) == null ? void 0 : _provider$post.apply(this, arguments); |
| | | |
| | | if (missingDependencies !== false) { |
| | | if (missingDependencies.log === "per-file") { |