Skip to content

Commit 26bfab9

Browse files
committed
Use named exports
1 parent 8c7b68a commit 26bfab9

File tree

1 file changed

+7
-7
lines changed
  • packages/component/src/Attachment/Text/private

1 file changed

+7
-7
lines changed

packages/component/src/Attachment/Text/private/shiki.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// `shiki/core` entry does not include any themes or languages or the wasm binary.
2-
import { createHighlighterCore, type ThemeRegistrationRaw } from 'shiki/dist/core.mjs';
3-
import { createJavaScriptRegexEngine } from 'shiki/dist/engine-javascript.mjs';
2+
import { createHighlighterCore, type ThemeRegistrationRaw } from 'shiki/core';
3+
import { createJavaScriptRegexEngine } from 'shiki/engine-javascript.mjs';
44

55
// directly import the theme and language modules, only the ones you imported will be bundled.
6-
import themeGitHubDark from 'shiki/dist/themes/github-dark-default.mjs';
7-
import themeGitHubLight from 'shiki/dist/themes/github-light-default.mjs';
6+
import themeGitHubDark from 'shiki/themes/github-dark-default.mjs';
7+
import themeGitHubLight from 'shiki/themes/github-light-default.mjs';
88

9-
import languageJavaScript from 'shiki/dist/langs/js.mjs';
10-
import languagePython from 'shiki/dist/langs/py.mjs';
11-
import languageTypeScript from 'shiki/dist/langs/ts.mjs';
9+
import languageJavaScript from 'shiki/langs/js.mjs';
10+
import languagePython from 'shiki/langs/py.mjs';
11+
import languageTypeScript from 'shiki/langs/ts.mjs';
1212

1313
function addjustTheme(theme: ThemeRegistrationRaw): ThemeRegistrationRaw {
1414
return {

0 commit comments

Comments
 (0)