diff --git a/vite.config.ts b/vite.config.ts index 02bc4a8..d23c5cb 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -70,16 +70,17 @@ export default defineConfig(({ mode }) => { plugins: [ devtools({ autoname: true, - locator: devConf["DEV_LOCATOR_EDITOR"] ? { - targetIDE: - (devConf["DEV_LOCATOR_EDITOR"] as - | "vscode" - | "atom" - | "webstorm" - | "vscode-insiders") || "vscode", - componentLocation: true, - jsxLocation: true, - } : undefined, + locator: devConf["DEV_LOCATOR_EDITOR"] + ? { + targetIDE: devConf["DEV_LOCATOR_EDITOR"] as + | "vscode" + | "atom" + | "webstorm" + | "vscode-insiders", + componentLocation: true, + jsxLocation: true, + } + : undefined, }), suid(), solid(),