Skip to content

Commit

Permalink
fix: bundle externals
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Jan 2, 2025
1 parent a96b612 commit 4e173fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
10 changes: 2 additions & 8 deletions packages/shiki/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down
2 changes: 1 addition & 1 deletion packages/shiki/test/bundle.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ it('bundle-full', async () => {
}))

expect(highlighter.getLoadedLanguages().length)
.toMatchInlineSnapshot(`319`)
.toMatchInlineSnapshot(`320`)
})

it('bundle-web', async () => {
Expand Down

0 comments on commit 4e173fe

Please sign in to comment.