Skip to content

Commit

Permalink
fix: type
Browse files Browse the repository at this point in the history
  • Loading branch information
Blackman99 committed Sep 5, 2024
1 parent fa0667b commit a85c9cd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions packages/twoslash/src/twoslash-svelte/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { SourceMapConsumer } from 'source-map-js'
import type { CreateTwoslashOptions, TwoslashExecuteOptions, TwoslashInstance, TwoslashNode } from 'twoslash'
import { createTwoslasher as createTwoslasherBase } from 'twoslash'
import { svelte2tsx } from 'svelte2tsx'
import { ModuleKind, ModuleResolutionKind } from 'typescript'

const dirname = fileURLToPath(new URL('.', import.meta.url))

Expand Down Expand Up @@ -36,8 +35,8 @@ export async function createTwoslasher(createTwoslashSvelteOptions: CreateTwosla
compilerOptions: {
jsx: 1,
types: ['@sveltepress/vite/types', '@sveltepress/theme-default/types', '@sveltepress/theme-default/components'],
moduleResolution: ModuleResolutionKind.NodeNext,
module: ModuleKind.NodeNext,
moduleResolution: 99,
module: 199,
},
shouldGetHoverInfo(identifier) {
return !['__sveltets', 'Index__', 'svelteHTML', '$$', 'target', 'createElement', 'props', '{}'].some(id => identifier.startsWith(id))
Expand Down

0 comments on commit a85c9cd

Please sign in to comment.