Skip to content

Commit 275dbd7

Browse files
authored
fix(vidstack): type legacy vite plugin (#1801)
1 parent 0e71148 commit 275dbd7

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/vidstack/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import { transform } from 'esbuild';
44
import { defineConfig } from 'vite';
5+
import type { Plugin } from 'vite';
56

67
const SERVER = !!process.env.SERVER;
78

@@ -38,7 +39,7 @@ export default defineConfig({
3839
plugins: [legacyPlugin()],
3940
});
4041

41-
function legacyPlugin() {
42+
function legacyPlugin(): Plugin {
4243
return {
4344
name: 'legacy',
4445
enforce: 'pre',

0 commit comments

Comments
 (0)