rn-shiki 0.0.33 → 0.0.34

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "rn-shiki",
3
3
  "type": "module",
4
- "version": "0.0.33",
4
+ "version": "0.0.34",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -1,7 +1,7 @@
1
1
  import type { LanguageInput, ThemedToken, ThemeInput } from 'shiki'
2
2
  import type { TokenType } from '../../types'
3
- import { createHighlighterCore } from 'shiki/core'
4
- import { createJavaScriptRegexEngine } from 'shiki/engine/javascript'
3
+ import { createHighlighterCore } from 'shiki/dist/core.mjs'
4
+ import { createJavaScriptRegexEngine } from 'shiki/dist/engine-javascript.mjs'
5
5
 
6
6
  async function initializeHighlighter(langs: LanguageInput[], themes: ThemeInput[]): Promise<Awaited<ReturnType<typeof createHighlighterCore>>> {
7
7
  return createHighlighterCore({