Skip to content

Commit 2b8df23

Browse files
committed
fix
1 parent c0744ff commit 2b8df23

File tree

6 files changed

+10
-88
lines changed

6 files changed

+10
-88
lines changed

examples/react/basic/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@
2020
"zod": "^4.0.14"
2121
},
2222
"devDependencies": {
23-
"vite-plugin-inspect": "11.3.2",
2423
"@tanstack/devtools-vite": "0.2.3",
2524
"@types/react": "^19.1.2",
2625
"@types/react-dom": "^19.1.2",
2726
"@vitejs/plugin-react": "^4.5.2",
28-
"vite": "^7.0.6"
27+
"vite": "^7.0.6",
28+
"vite-plugin-inspect": "11.3.2"
2929
},
3030
"browserslist": {
3131
"production": [

examples/solid/basic/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
"solid-js": "^1.9.7"
1818
},
1919
"devDependencies": {
20-
"vite-plugin-inspect": "11.3.2",
2120
"@tanstack/devtools-vite": "0.2.3",
2221
"vite": "^7.0.6",
22+
"vite-plugin-inspect": "11.3.2",
2323
"vite-plugin-solid": "^2.11.6"
2424
},
2525
"browserslist": {

packages/devtools-vite/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@
5454
"@babel/core": "^7.28.3",
5555
"@babel/generator": "^7.28.3",
5656
"@babel/parser": "^7.28.3",
57-
"@babel/preset-react": "^7.27.1",
5857
"@babel/traverse": "^7.28.3",
5958
"@babel/types": "^7.28.2",
6059
"@tanstack/devtools-event-bus": "workspace:*",
@@ -65,4 +64,4 @@
6564
"@types/babel__generator": "^7.27.0",
6665
"@types/babel__traverse": "^7.28.0"
6766
}
68-
}
67+
}

packages/devtools-vite/src/inject-source.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const transform = (ast: ParseResult<Babel.File>, file: string) => {
1515
// Inject data-source as a string: "<file>:<line>:<column>"
1616
path.node.attributes.push(
1717
t.jsxAttribute(
18-
t.jsxIdentifier('data-source'),
18+
t.jsxIdentifier('data-tsd-source'),
1919
t.stringLiteral(`${file}:${line}:${column}`),
2020
),
2121
)

packages/devtools/src/devtools.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export default function DevTools() {
3030
setIsOpen(!open)
3131
setPersistOpen(!open)
3232
}
33-
createEffect(() => {})
33+
createEffect(() => { })
3434
// Used to resize the panel
3535
const handleDragStart = (
3636
panelElement: HTMLDivElement | undefined,
@@ -160,14 +160,14 @@ export default function DevTools() {
160160
if (!isShiftHeld || !isCtrlHeld) return
161161

162162
if (e.target instanceof HTMLElement) {
163-
const dataSource = e.target.getAttribute('data-source')
163+
const dataSource = e.target.getAttribute('data-tsd-source')
164164
window.getSelection()?.removeAllRanges()
165165
if (dataSource) {
166166
e.preventDefault()
167167
e.stopPropagation()
168168
fetch(
169169
`http://localhost:__TSD_PORT__/__tsd/open-source?source=${dataSource}`,
170-
).catch(() => {})
170+
).catch(() => { })
171171
}
172172
}
173173
}

pnpm-lock.yaml

Lines changed: 2 additions & 79 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)