Commit 2308e4a
build: Conditionally load VSCode workbench script and externalize analytics packages
- Implemented environment-based conditional loading for VSCode workbench script:
- Development/debug modes use cache-busted URL via Bust() utility
- Production builds import directly from module path to leverage optimized bundling
- Added Rollup configuration to externalize @microsoft/1ds-core-js and @microsoft/1ds-post-js
- Prevents bundling of Microsoft's analytics SDKs, reducing final bundle size
- Assumes these will be provided externally or loaded through alternative means
These changes optimize production build output while maintaining developer experience with cache-refreshed resources during local development.1 parent 3d15b19 commit 2308e4a
25 files changed
Lines changed: 51 additions & 26 deletions
File tree
- Source/pages
- Target
- Application
- Static/Application/vs
- base/common
- editor
- browser/gpu
- common/core
- contrib
- linesOperations/browser
- unicodeHighlighter/browser
- workbench
- browser/parts
- notifications
- titlebar
- contrib
- chat/browser
- actions
- codeEditor/browser
- emptyTextEditorHint
- outline
- localHistory/browser
- notebook/browser/contrib/outline
- remote/browser
- scm/browser
- testing/browser
- _astro
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
146 | 146 | | |
147 | 147 | | |
148 | 148 | | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
149 | 153 | | |
150 | 154 | | |
151 | 155 | | |
| |||
187 | 191 | | |
188 | 192 | | |
189 | 193 | | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
195 | 211 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments