Fix: ensure splitting is disabled in esbuild configuration#1355
Fix: ensure splitting is disabled in esbuild configuration#1355alexweininger merged 5 commits intomainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR addresses issue #1352 where the Azure panel fails to load after installing the Azure Resources extension with an Azure Functions project open. The fix explicitly disables code splitting in the esbuild configuration to prevent VS Code from encountering issues when loading the extension bundles.
Changes:
- Added
splitting: falseto the esbuild configuration to prevent esbuild from creating separate code chunks
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
I think it is caused by splitting. But it's a VS Code bug that allows the extension to start loading before everything from the VSIX is unpacked... speculation here |
|
I'm going to have Jing/CTI test this out before merging to see if this fixes it. |
|
Sounds good. We should have CTI check the folder to see if that file exists after the error has appeared, or if it's still gone... |
Good idea |
| ], | ||
| // Disable code splitting to avoid VS Code extension loading issues (see #1352) | ||
| splitting: false, | ||
| format: 'cjs', |
There was a problem hiding this comment.
This is strange...the format should be 'cjs' by default...
There was a problem hiding this comment.
Very strange. The splitting false option didn't work unless this was also set. Not sure why but Copilot suggested it and it works :)
Seeing if this fixes #1352