MCPcopy
hub / github.com/vercel/styled-jsx / transformSource

Function transformSource

test/_transform.js:22–38  ·  view source on GitHub ↗
(src, opts = {})

Source from the content-addressed store, hash-verified

20 })
21
22export const transformSource = (src, opts = {}) =>
23 new Promise((resolve, reject) => {
24 transform(
25 src,
26 {
27 babelrc: false,
28 ...opts
29 },
30 (error, result) => {
31 if (error) {
32 return reject(error)
33 }
34
35 resolve(result)
36 }
37 )
38 })

Callers 3

macro.jsFile · 0.90
index.jsFile · 0.90
external.jsFile · 0.90

Calls 1

transformFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…