We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7900196 commit 7722d88Copy full SHA for 7722d88
config/index.md
@@ -121,3 +121,19 @@ export default defineConfig(({ mode }) => {
121
}
122
})
123
```
124
+
125
+## VS Code で設定ファイルをデバッグする
126
127
+デフォルトの `--configLoader bundle` の動作では、Vite は生成された一時的な設定ファイルを `node_modules/.vite-temp` フォルダーに書き込むため、Vite の設定ファイル内でブレークポイントデバッグを設定するときにファイルが見つからないというエラーが発生します。この問題を修正するには、`.vscode/settings.json` に以下の設定を追加してください:
128
129
+```json
130
+{
131
+ "debug.javascript.terminalOptions": {
132
+ "resolveSourceMapLocations": [
133
+ "${workspaceFolder}/**",
134
+ "!**/node_modules/**",
135
+ "**/node_modules/.vite-temp/**"
136
+ ]
137
+ }
138
+}
139
+```
0 commit comments