From 9da43b6b758d99797b94e447f88677d792c223d2 Mon Sep 17 00:00:00 2001 From: Aaron Date: Sat, 25 Jul 2026 20:15:28 -0500 Subject: [PATCH] Fix formatting --- packages/wxt/e2e/tests/runners.test.ts | 4 +--- packages/wxt/src/core/create-server.ts | 16 ++++++---------- 2 files changed, 7 insertions(+), 13 deletions(-) diff --git a/packages/wxt/e2e/tests/runners.test.ts b/packages/wxt/e2e/tests/runners.test.ts index cc2ba82d..ad3f8a77 100644 --- a/packages/wxt/e2e/tests/runners.test.ts +++ b/packages/wxt/e2e/tests/runners.test.ts @@ -61,9 +61,7 @@ vi.mock('is-wsl', () => ({ }, })); -/** - * Imitate a real module not found error - needs the correct `code` property. - */ +/** Imitate a real module not found error - needs the correct `code` property. */ class ModuleNotFoundError extends Error { code = 'ERR_MODULE_NOT_FOUND'; diff --git a/packages/wxt/src/core/create-server.ts b/packages/wxt/src/core/create-server.ts index 1ae31aff..5939870c 100644 --- a/packages/wxt/src/core/create-server.ts +++ b/packages/wxt/src/core/create-server.ts @@ -1,12 +1,6 @@ import chokidar from 'chokidar'; -import { - InlineConfig, - ServerInfo, - WxtDevServer, -} from '../types'; -import { - internalBuild, -} from './utils/building'; +import { InlineConfig, ServerInfo, WxtDevServer } from '../types'; +import { internalBuild } from './utils/building'; import { deinitWxtModules, initWxtModules, registerWxt, wxt } from './wxt'; import { unnormalizePath } from './utils/paths'; import { createKeyboardShortcuts } from './keyboard-shortcuts'; @@ -131,7 +125,8 @@ async function createServerInternal(): Promise { keyboardShortcuts.start(); keyboardShortcuts.printHelp({ canReopenBrowser: - !wxt.config.runnerConfig.config.disabled && !!wxt.config.runner.canOpen?.(), + !wxt.config.runnerConfig.config.disabled && + !!wxt.config.runner.canOpen?.(), }); }, }; @@ -174,7 +169,8 @@ async function createServerInternal(): Promise { keyboardShortcuts.start(); keyboardShortcuts.printHelp({ canReopenBrowser: - !wxt.config.runnerConfig.config.disabled && !!wxt.config.runner.canOpen?.(), + !wxt.config.runnerConfig.config.disabled && + !!wxt.config.runner.canOpen?.(), }); };