MCPcopy Create free account
hub / github.com/adobe/react-spectrum / transform

Function transform

parcel-v3/PostCSSTransformer.mjs:7–15  ·  view source on GitHub ↗
({asset})

Source from the content-addressed store, hash-verified

5
6export default new Transformer({
7 async transform({asset}) {
8 let code = asset.getCode();
9 let res = await postcss(processors).process(code, {
10 map: false,
11 from: new URL(asset.url).pathname
12 });
13 asset.setCode(res.css);
14 asset.type = 'css';
15 }
16});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected