diff --git a/packages/shiki/rollup.config.mjs b/packages/shiki/rollup.config.mjs index af753af8..875a8d83 100644 --- a/packages/shiki/rollup.config.mjs +++ b/packages/shiki/rollup.config.mjs @@ -27,15 +27,9 @@ const entries = [ ] const external = [ - '@shikijs/types', - '@shikijs/core', - '@shikijs/core/wasm-inlined', - '@shikijs/core/types', - '@shikijs/engine-javascript', - '@shikijs/engine-oniguruma', - '@shikijs/vscode-textmate', 'shiki/wasm', - /[/\\]src[/\\](langs|themes)[/\\]/g, + /^@shikijs[/\\].*/g, + /[/\\](langs|themes)[/\\]/g, ] const plugins = [ diff --git a/packages/shiki/test/bundle.test.ts b/packages/shiki/test/bundle.test.ts index 9958578b..d302467c 100644 --- a/packages/shiki/test/bundle.test.ts +++ b/packages/shiki/test/bundle.test.ts @@ -7,7 +7,7 @@ it('bundle-full', async () => { })) expect(highlighter.getLoadedLanguages().length) - .toMatchInlineSnapshot(`319`) + .toMatchInlineSnapshot(`320`) }) it('bundle-web', async () => {