Skip to content

Commit 6176382

Browse files
authored
fix: make inject source optional (#68)
1 parent 27874dd commit 6176382

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.changeset/free-kings-lead.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@tanstack/devtools-vite': patch
3+
---
4+
5+
fix the config for inject config to be optional

docs/vite-plugin.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ export default {
7070
```
7171

7272
### editor
73+
74+
> [!IMPORTANT] `editor` is only needed for editors that are NOT VS Code, by default this works OOTB with VS Code.
75+
7376

7477
The open in editor configuration which has two fields, `name` and `open`,
7578
`name` is the name of your editor, and `open` is a function that opens the editor with the given file and line number. You can implement your version for your editor as follows:
@@ -97,8 +100,6 @@ export default {
97100

98101
```
99102

100-
> [!IMPORTANT] `editor` is only needed for editors that are NOT VS Code, by default this works OOTB with VS Code.
101-
102103
### enhancedLogs
103104

104105
Configuration for enhanced logging. Defaults to enabled.

packages/devtools-vite/src/plugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export type TanStackDevtoolsViteConfig = {
3030
/**
3131
* Configuration for source injection.
3232
*/
33-
injectSource: {
33+
injectSource?: {
3434
/**
3535
* Whether to enable source injection via data-tsd-source.
3636
* @default true

0 commit comments

Comments
 (0)