diff --git a/scripts/postinstall.mjs b/scripts/postinstall.mjs index c8cf244..0b8ec05 100644 --- a/scripts/postinstall.mjs +++ b/scripts/postinstall.mjs @@ -58,6 +58,11 @@ packages.forEach((p) => { pkg.exports = { '.': { types: './dist/index.d.ts', + ...(pkg.name === 'bytemd' + ? { + svelte: './svelte/index.js', + } + : {}), import: './dist/index.mjs', require: './dist/index.js', },