rn-shiki 0.0.11 → 0.0.13

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.11",
4
+ "version": "0.0.13",
5
5
  "description": "Shiki syntax highlighter for React Native.",
6
6
  "author": "Ryan Skinner <hello@ryanskinner.com>",
7
7
  "license": "MIT",
@@ -1,8 +1,8 @@
1
1
  import type { LanguageInput, ThemeInput } from 'shiki'
2
2
  import React from 'react'
3
3
  import { Text, View } from 'react-native'
4
- import typescript from '../../../vendor/shiki/langs/typescript'
5
- import githubDark from '../../../vendor/shiki/themes/github-dark'
4
+ import typescript from '../../../vendor/shiki/langs/typescript.js'
5
+ import githubDark from '../../../vendor/shiki/themes/github-dark.js'
6
6
  import { useSyntaxHighlighter } from '../../hooks/useSyntaxHighlighter'
7
7
 
8
8
  interface SyntaxHighlighterProps {
@@ -18,6 +18,7 @@ export async function createHighlighter({ langs, themes }: { langs: LanguageInpu
18
18
 
19
19
  try {
20
20
  const highlighter = await initializeHighlighter(langs, themes)
21
+ console.log('Initialized highlighter:', highlighter)
21
22
  return highlighter
22
23
  }
23
24
  catch (error) {