Skip to content

sync transform #720

Answered by mischnic
o-az asked this question in Q&A
Discussion options

You must be logged in to vote

On https://lightningcss.dev/docs.html, the first example is indeed a synchronous transform?

import { transform } from 'lightningcss';

let { code, map } = transform({
  filename: 'style.css',
  code: Buffer.from('.foo { color: red }'),
  minify: true,
  sourceMap: true
});

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by o-az
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants