WXL
3 天以前 3bd962a6d7f61239c020e2dbbeb7341e5b842dd1
node_modules/webpack/lib/config/browserslistTargetHandler.js
@@ -16,6 +16,7 @@
const inputRx = /^(?:((?:[A-Z]:)?[/\\].*?))?(?::(.+?))?$/i;
/**
 * Returns selected browsers.
 * @param {string | null | undefined} input input string
 * @param {string} context the context directory
 * @returns {string[] | undefined} selected browsers
@@ -58,6 +59,7 @@
};
/**
 * Returns target properties.
 * @param {string[]} browsers supported browsers list
 * @returns {EcmaTargetProperties & PlatformTargetProperties & ApiTargetProperties} target properties
 */
@@ -118,6 +120,25 @@
         kaios: [2, 5],
         node: [6, 0]
      }),
      methodShorthand: rawChecker({
         chrome: 47,
         and_chr: 47,
         edge: 12,
         firefox: 34,
         and_ff: 34,
         // ie: Not supported,
         opera: 34,
         op_mob: 34,
         safari: 9,
         ios_saf: 9,
         samsung: 5,
         android: 47,
         // baidu: Not tracked,
         and_qq: [14, 9],
         and_uc: [15, 5],
         kaios: [2, 5],
         node: [4, 9]
      }),
      arrowFunction: rawChecker({
         chrome: 45,
         and_chr: 45,