(opts)
| 38 | }); |
| 39 | |
| 40 | function 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 | |
| 51 | function normalizeOptions(preconfiguredOpts, transformOpts, filename) { |
| 52 | const basedir = normalizeTransformBasedir(transformOpts); |
no test coverage detected
searching dependent graphs…