Skip to content

Commit

Permalink
perf: externalize @shikijs/vscode-textmate
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 1, 2024
1 parent b0f3bb7 commit a1e154d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions packages/core/rollup.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const plugins = [
wasmPlugin(),
]

const external = [
'hast',
'@shikijs/vscode-textmate',
]

export default defineConfig([
{
input: entries,
Expand All @@ -46,6 +51,7 @@ export default defineConfig([
plugins: [
...plugins,
],
external,
},
{
input: entries,
Expand All @@ -70,9 +76,7 @@ export default defineConfig([
if (!/Circular|an empty chunk/.test(warning.message))
warn(warning)
},
external: [
'hast',
],
external,
},
])

Expand Down

0 comments on commit a1e154d

Please sign in to comment.