Skip to content

Commit 6b9b31f

Browse files
committed
update for Vite6
1 parent 04c8cd9 commit 6b9b31f

4 files changed

Lines changed: 254 additions & 140 deletions

File tree

vitejs/index.d.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
1+
import { Plugin } from 'vite';
2+
13
/**
24
* Vite plugin for backloop.dev HTTPS local development
35
* @param hostname - Subdomain to use (e.g., 'myapp' becomes myapp.backloop.dev)
46
* @param port - Optional port number for the dev server
57
* @returns Vite plugin configuration
68
*/
7-
declare function backloop(hostname?: string, port?: number): {
8-
name: string;
9-
apply: 'serve';
10-
config(config: Record<string, unknown>): void;
11-
};
9+
declare function backloop(hostname?: string, port?: number): Plugin;
1210

13-
export default backloop;
11+
export default backloop;

vitejs/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import backloopHttpsOptions from 'backloop.dev';
66

77
function backloop(hostname = 'whatever', port) {
8-
console.log({hostname});
98
return {
109
name: 'backloop.dev',
1110
apply: 'serve',

0 commit comments

Comments
 (0)