MCPcopy Create free account
hub / github.com/babel/babelify / buildTransform

Function buildTransform

index.js:40–49  ·  view source on GitHub ↗
(opts)

Source from the content-addressed store, hash-verified

38});
39
40function buildTransform(opts) {
41 return function (filename, transformOpts) {
42 const babelOpts = normalizeOptions(opts, transformOpts, filename);
43 if (babelOpts === null) {
44 return stream.PassThrough();
45 }
46
47 return new BabelifyStream(babelOpts);
48 };
49}
50
51function normalizeOptions(preconfiguredOpts, transformOpts, filename) {
52 const basedir = normalizeTransformBasedir(transformOpts);

Callers 1

index.jsFile · 0.85

Calls 1

normalizeOptionsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…