Skip to content

Commit

Permalink
style(plugins): fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mr150 committed Jul 15, 2024
1 parent d548b20 commit 9acb05e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/plugins/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function debounce<T>(fn: (...args: T[]) => unknown, timeout: number) {
return (...args: T[]) => {
clearTimeout(timer);
timer = setTimeout(fn, timeout, ...args);
}
};
}

export const unplugin = createUnplugin<Options>((options, meta) => {
Expand Down Expand Up @@ -74,7 +74,7 @@ export const unplugin = createUnplugin<Options>((options, meta) => {
}

await jitEngine.init([inputPath, inputContent]);
}
};

return {
name: pluginName,
Expand Down Expand Up @@ -103,7 +103,7 @@ export const unplugin = createUnplugin<Options>((options, meta) => {
// TODO: add the Vite types
configureServer(server: { watcher: FSWatcher }) {
server.watcher.add(finalOptions.output);
},
},

// hack because `buildStart` is not async in Webpack yet
// https://github.com/unjs/unplugin/issues/293
Expand Down Expand Up @@ -155,7 +155,7 @@ export const unplugin = createUnplugin<Options>((options, meta) => {
attrs: { rel: 'stylesheet', href: finalOptions.output },
},
],
}
};
} else if (isVite) {
await writeCssFile();
}
Expand Down

0 comments on commit 9acb05e

Please sign in to comment.