add back missing ssr-utils.ts file (#3919)

This commit is contained in:
Fred K. Schott 2022-07-14 09:05:20 -07:00 committed by GitHub
parent 056d4d5fd2
commit 01a55467d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/markdown-remark': patch
---
Add back missing ssr-utils.js file

View file

@ -13,7 +13,8 @@
"homepage": "https://astro.build",
"main": "./dist/index.js",
"exports": {
".": "./dist/index.js"
".": "./dist/index.js",
"./ssr-utils": "./dist/ssr-utils.js"
},
"scripts": {
"prepublish": "pnpm build",

View file

@ -0,0 +1,8 @@
/** 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);
}