This repository has been archived on 2024-07-27. You can view files and clone it, but cannot push or open issues or pull requests.
keksAccountGUI/node_modulesOLD/@babel/preset-env/lib/defaults.js

29 lines
860 B
JavaScript
Raw Permalink Normal View History

2019-08-11 18:48:02 +00:00
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getOptionSpecificExcludesFor = exports.getPlatformSpecificDefaultFor = void 0;
const defaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"];
const defaultExcludesForLooseMode = ["transform-typeof-symbol"];
const getPlatformSpecificDefaultFor = targets => {
const targetNames = Object.keys(targets);
const isAnyTarget = !targetNames.length;
const isWebTarget = targetNames.some(name => name !== "node");
return isAnyTarget || isWebTarget ? defaultWebIncludes : null;
};
exports.getPlatformSpecificDefaultFor = getPlatformSpecificDefaultFor;
const getOptionSpecificExcludesFor = ({
loose
}) => {
if (loose) {
return defaultExcludesForLooseMode;
}
return null;
};
exports.getOptionSpecificExcludesFor = getOptionSpecificExcludesFor;