MCPcopy Index your code
hub / github.com/webpack/webpack / isTypeScriptResource

Function isTypeScriptResource

lib/typescript/TypeScriptPlugin.js:58–59  ·  view source on GitHub ↗
(resource)

Source from the content-addressed store, hash-verified

56 * @returns {boolean} true if the resource should be transformed
57 */
58const isTypeScriptResource = (resource) =>
59 TS_RESOURCE_RE.test(resource) || TS_DATA_URI_RE.test(resource);
60
61/**
62 * Build a line-granularity identity source map for a strip-types output.

Callers 1

_processResultMethod · 0.85

Calls 1

testMethod · 0.45

Tested by

no test coverage detected