MCPcopy
hub / github.com/webpack/webpack / getDefaultTarget

Function getDefaultTarget

lib/config/target.js:19–22  ·  view source on GitHub ↗
(context)

Source from the content-addressed store, hash-verified

17 * @returns {string} default target
18 */
19const getDefaultTarget = (context) => {
20 const browsers = getBrowserslistTargetHandler().load(undefined, context);
21 return browsers ? "browserslist" : "web";
22};
23
24/**
25 * Defines the platform target properties type used by this module.

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected