You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
522 B
16 lines
522 B
|
3 years ago
|
"use strict";
|
||
|
|
|
||
|
|
Object.defineProperty(exports, "__esModule", {
|
||
|
|
value: true
|
||
|
|
});
|
||
|
|
exports.default = _default;
|
||
|
|
exports.defaultWebIncludes = void 0;
|
||
|
|
const defaultWebIncludes = ["web.timers", "web.immediate", "web.dom.iterable"];
|
||
|
|
exports.defaultWebIncludes = defaultWebIncludes;
|
||
|
|
|
||
|
|
function _default(targets) {
|
||
|
|
const targetNames = Object.keys(targets);
|
||
|
|
const isAnyTarget = !targetNames.length;
|
||
|
|
const isWebTarget = targetNames.some(name => name !== "node");
|
||
|
|
return isAnyTarget || isWebTarget ? defaultWebIncludes : null;
|
||
|
|
}
|