astro/packages/integrations
Ben Holmes cfcf2e2ffd
[Markdoc] Support automatic image optimization with experimental.assets (#6630)
* wip: scrappy implementation. It works! 🥳

* chore: add code comments on inline utils

* fix: code cleanup, run on experimental.assets

* feat: support ~/assets alias

* fix: spoof `astro:assets` when outside experimental

* test: image paths in dev and prod

* feat: support any vite alias with ctx.resolve

* fix: avoid trying to process absolute paths

* fix: raise helpful error for invalid vite paths

* refactor: revert URL support on emitAsset

* chore: lint

* refactor: expose emitESMImage from assets base

* wip: why doesn't assets exist

* scary chore: make @astrojs/markdoc truly depend on astro

* fix: import emitESMImage straight from dist

* chore: remove type def from assets package

* chore: screw it, just ts ignore

* deps: rollup types

* refactor: optimize images during parse step

* chore: remove unneeded `.flat()`

* fix: use file-based relative paths

* fix: add back helpful error

* chore: changeset

* deps: move astro back to dev dep

* fix: put emit assets behind flag

* chore: change to markdoc patch
2023-03-24 07:58:56 -04:00
..
alpinejs [ci] release (#6476) 2023-03-13 16:05:43 -04:00
cloudflare [ci] release (#6634) 2023-03-24 13:49:12 +08:00
deno [ci] release (#6634) 2023-03-24 13:49:12 +08:00
image [ci] release (#6634) 2023-03-24 13:49:12 +08:00
lit Add default .npmrc for astro add lit (#6460) 2023-03-09 14:42:57 +08:00
markdoc [Markdoc] Support automatic image optimization with experimental.assets (#6630) 2023-03-24 07:58:56 -04:00
mdx [ci] release (#6612) 2023-03-22 20:53:15 +08:00
netlify [ci] release (#6634) 2023-03-24 13:49:12 +08:00
node [ci] release (#6634) 2023-03-24 13:49:12 +08:00
partytown [ci] release (#6476) 2023-03-13 16:05:43 -04:00
preact fix: Enforce the usage of type imports when possible (#6502) 2023-03-10 16:19:57 +01:00
prefetch [ci] release (#6476) 2023-03-13 16:05:43 -04:00
react fix: Enforce the usage of type imports when possible (#6502) 2023-03-10 16:19:57 +01:00
sitemap feat(all): Migrate to TypeScript 5.0 (#6579) 2023-03-20 17:02:07 +01:00
solid [ci] release (#6432) 2023-03-07 14:49:19 -05:00
svelte [ci] release (#6634) 2023-03-24 13:49:12 +08:00
tailwind [ci] release (#6634) 2023-03-24 13:49:12 +08:00
turbolinks [ci] release (#6476) 2023-03-13 16:05:43 -04:00
vercel [ci] release (#6634) 2023-03-24 13:49:12 +08:00
vue [ci] release (#6634) 2023-03-24 13:49:12 +08:00