Skip to content

Commit b9717d1

Browse files
authored
feat: respect user process.env.LAUNCH_EDITOR setting (#93)
1 parent c8b1904 commit b9717d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export const DEFAULT_INSPECTOR_OPTIONS: VitePluginInspectorOptions = {
132132
toggleButtonPos: 'top-right',
133133
appendTo: '',
134134
lazyLoad: false,
135-
launchEditor: 'code',
135+
launchEditor: process.env.LAUNCH_EDITOR ?? 'code',
136136
} as const
137137

138138
const availableLaunchEditors = [

0 commit comments

Comments
 (0)