mirror of
https://github.com/NickKaramoff/toot
synced 2025-01-28 16:19:46 +01:00
Add type annotations to transform()
This commit is contained in:
parent
8f61bc80c1
commit
95e1011dca
@ -54,7 +54,7 @@ const lightningCssPlugin = () => {
|
|||||||
const targets = browserslistToTargets(browserslist());
|
const targets = browserslistToTargets(browserslist());
|
||||||
return {
|
return {
|
||||||
name: "vite-plugin-lightningcss",
|
name: "vite-plugin-lightningcss",
|
||||||
transform(source, id) {
|
transform(source: string, id: string) {
|
||||||
if (!id.endsWith(".css")) return;
|
if (!id.endsWith(".css")) return;
|
||||||
|
|
||||||
const { code, map } = transform({
|
const { code, map } = transform({
|
||||||
|
Loading…
x
Reference in New Issue
Block a user