Add type annotations to transform()
This commit is contained in:
parent
8f61bc80c1
commit
95e1011dca
1 changed files with 1 additions and 1 deletions
|
@ -54,7 +54,7 @@ const lightningCssPlugin = () => {
|
|||
const targets = browserslistToTargets(browserslist());
|
||||
return {
|
||||
name: "vite-plugin-lightningcss",
|
||||
transform(source, id) {
|
||||
transform(source: string, id: string) {
|
||||
if (!id.endsWith(".css")) return;
|
||||
|
||||
const { code, map } = transform({
|
||||
|
|
Reference in a new issue