update solid-devtools

This commit is contained in:
thislight 2025-01-04 17:36:01 +08:00
parent d04731e64c
commit 5945f07ce8
No known key found for this signature in database
GPG key ID: FCFE5192241CCD4E
4 changed files with 8 additions and 9 deletions

BIN
bun.lockb

Binary file not shown.

View file

@ -17,7 +17,7 @@
"author": "Rubicon", "author": "Rubicon",
"license": "Apache-2.0", "license": "Apache-2.0",
"devDependencies": { "devDependencies": {
"@solid-devtools/overlay": "^0.30.1", "@solid-devtools/overlay": "^0.33.0",
"@suid/vite-plugin": "^0.3.1", "@suid/vite-plugin": "^0.3.1",
"@testing-library/webdriverio": "^3.2.1", "@testing-library/webdriverio": "^3.2.1",
"@types/hammerjs": "^2.0.46", "@types/hammerjs": "^2.0.46",
@ -65,7 +65,7 @@
"masto": "^6.10.1", "masto": "^6.10.1",
"nanostores": "^0.11.3", "nanostores": "^0.11.3",
"normalize.css": "^8.0.1", "normalize.css": "^8.0.1",
"solid-devtools": "^0.30.1", "solid-devtools": "^0.33.0",
"solid-js": "^1.9.3", "solid-js": "^1.9.3",
"solid-styled": "^0.11.1", "solid-styled": "^0.11.1",
"solid-transition-group": "^0.2.3", "solid-transition-group": "^0.2.3",

View file

@ -2,8 +2,8 @@
"compilerOptions": { "compilerOptions": {
"strict": true, "strict": true,
"target": "ESNext", "target": "ESNext",
"module": "esnext", "module": "ESNext",
"moduleResolution": "node", "moduleResolution": "bundler",
"allowSyntheticDefaultImports": true, "allowSyntheticDefaultImports": true,
"esModuleInterop": true, "esModuleInterop": true,
"noEmit": true, "noEmit": true,

View file

@ -4,7 +4,7 @@ import solidStyled from "vite-plugin-solid-styled";
import suid from "@suid/vite-plugin"; import suid from "@suid/vite-plugin";
import { VitePWA } from "vite-plugin-pwa"; import { VitePWA } from "vite-plugin-pwa";
import version from "vite-plugin-package-version"; import version from "vite-plugin-package-version";
import manifest from "./manifest.config"; import manifest from "./manifest.config.js";
import { GetManualChunk } from "rollup"; import { GetManualChunk } from "rollup";
import devtools from "solid-devtools/vite"; import devtools from "solid-devtools/vite";
import { resolve } from "node:path"; import { resolve } from "node:path";
@ -70,17 +70,16 @@ export default defineConfig(({ mode }) => {
plugins: [ plugins: [
devtools({ devtools({
autoname: true, autoname: true,
locator: { locator: devConf["DEV_LOCATOR_EDITOR"] ? {
targetIDE: targetIDE:
(devConf["DEV_LOCATOR_EDITOR"] as (devConf["DEV_LOCATOR_EDITOR"] as
| "vscode" | "vscode"
| "atom" | "atom"
| "webstorm" | "webstorm"
| "vscode-insiders" | "vscode-insiders") || "vscode",
| "") || undefined,
componentLocation: true, componentLocation: true,
jsxLocation: true, jsxLocation: true,
}, } : undefined,
}), }),
suid(), suid(),
solid(), solid(),