MCPcopy Create free account
hub / github.com/callstack/linaria / transformFile

Function transformFile

packages/testkit/src/babel.test.ts:166–175  ·  view source on GitHub ↗
(filename: string, opts: Options)

Source from the content-addressed store, hash-verified

164});
165
166async function transformFile(filename: string, opts: Options) {
167 const [evaluator, linariaPartialConfig = {}, extension = 'js'] = opts;
168 const code = readFileSync(filename, 'utf8');
169 return transform(code, [
170 evaluator,
171 linariaPartialConfig,
172 extension,
173 filename,
174 ]);
175}
176
177describe('strategy shaker', () => {
178 const evaluator = shaker;

Callers 2

babel.test.tsFile · 0.85
fnFunction · 0.85

Calls 1

transformFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…