MCPcopy
hub / github.com/ampproject/amphtml / getImportResolverPlugin

Function getImportResolverPlugin

build-system/babel-config/import-resolver.js:100–102  ·  view source on GitHub ↗

* Import resolver Babel plugin configuration. * @param {'preact' | 'react'} buildFor * @return {!Array}

(buildFor = 'preact')

Source from the content-addressed store, hash-verified

98 * @return {!Array}
99 */
100function getImportResolverPlugin(buildFor = 'preact') {
101 return ['module-resolver', getImportResolver(buildFor)];
102}
103
104/**
105 * Resolves a filepath using the same logic as the rest of our build pipeline (babel module-resolver).

Callers 3

getTestConfigFunction · 0.85
getMinifiedConfigFunction · 0.85
getUnminifiedConfigFunction · 0.85

Calls 1

getImportResolverFunction · 0.85

Tested by

no test coverage detected