Commit a7bcffb
claude: Simplify import map and add external dependencies support
Remove Deno std entries from import map since esbuild cannot bundle
external URL schemes (jsr:, npm:, https:). Add externals support for
marking imports as external (not bundled).
Changes to quarto-cli:
- Simplify import-map.json: only @quarto/types remains
- Simplify updateImportMap(): just path transformation, no version syncing
- Add externals?: string[] to quartoExtension interface
- Implement --external flag handling in bundle function
- Add default externals to deno.json: ["jsr:*", "npm:*", "https:*", "http:*"]
Rationale:
- esbuild binary only bundles relative file paths
- External URL schemes must be resolved at runtime by Deno
- Import map now serves single purpose: @quarto/types aliasing
- Extension authors use full JSR URLs in source code
- Default externals cover all non-bundleable schemes
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 4068ca1 commit a7bcffb
File tree
4 files changed
+15
-34
lines changed- package/src/common
- src
- command/dev-call/build-ts-extension
- resources/extension-build
4 files changed
+15
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
237 | 237 | | |
238 | 238 | | |
239 | 239 | | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
247 | | - | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
| 240 | + | |
| 241 | + | |
266 | 242 | | |
267 | 243 | | |
268 | 244 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
284 | 292 | | |
285 | 293 | | |
286 | 294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
| 3 | + | |
10 | 4 | | |
11 | 5 | | |
0 commit comments