Skip to content

Commit

Permalink
Use esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
fregante committed Jun 28, 2024
1 parent e3b918c commit 319f16b
Show file tree
Hide file tree
Showing 6 changed files with 645 additions and 201 deletions.
4 changes: 1 addition & 3 deletions collector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
export const testableUrls = new Map<string, string[]>();

export function addTests(test: string, urls: string[]): void {
if (import.meta.env.VITE_KEEP_URLS === '1') {
testableUrls.set(test, urls);
}
TEST: testableUrls.set(test, urls);
}

export function getTests(detectName: string): string[] {
Expand Down
10 changes: 0 additions & 10 deletions global.d.ts
Original file line number Diff line number Diff line change
@@ -1,15 +1,5 @@
/* eslint-disable @typescript-eslint/consistent-type-definitions -- Module augmentation */

/// <reference types="vite/client" />

interface ImportMetaEnv {
readonly VITE_KEEP_URLS: string;
}

interface ImportMeta {
readonly env: ImportMetaEnv;
}

// Broaden types because testing against `"undefined"` is fine for our regexes
interface RegExp {
test(s: string | undefined): boolean;
Expand Down
Loading

0 comments on commit 319f16b

Please sign in to comment.