diff --git a/.changeset/rude-kangaroos-dance.md b/.changeset/rude-kangaroos-dance.md new file mode 100644 index 000000000..ba86ffd07 --- /dev/null +++ b/.changeset/rude-kangaroos-dance.md @@ -0,0 +1,5 @@ +--- +'@astrojs/markdown-remark': minor +--- + +Remove unused ssr-utils file diff --git a/packages/markdown/remark/package.json b/packages/markdown/remark/package.json index 18d197fae..8bb975ae0 100644 --- a/packages/markdown/remark/package.json +++ b/packages/markdown/remark/package.json @@ -13,8 +13,7 @@ "homepage": "https://astro.build", "main": "./dist/index.js", "exports": { - ".": "./dist/index.js", - "./ssr-utils": "./dist/ssr-utils.js" + ".": "./dist/index.js" }, "scripts": { "prepublish": "pnpm build", diff --git a/packages/markdown/remark/src/ssr-utils.ts b/packages/markdown/remark/src/ssr-utils.ts deleted file mode 100644 index 1491e24a5..000000000 --- a/packages/markdown/remark/src/ssr-utils.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** Utilities used in deployment-ready SSR bundles */ -import Slugger from 'github-slugger'; - -const slugger = new Slugger(); -/** @see {@link "/packages/astro/vite-plugin-markdown"} */ -export function slug(value: string): string { - return slugger.slug(value); -}