Skip to content

Commit

Permalink
workaround TS error
Browse files Browse the repository at this point in the history
  • Loading branch information
brillout committed Nov 30, 2022
1 parent 4a830ab commit 137bc26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vite-plugin-ssr/node/plugin/plugins/extractAssetsPlugin.ts
Original file line number Diff line number Diff line change
@@ -25,7 +25,8 @@ import {
virtualModuleIdPageFilesClientSR,
virtualModuleIdPageFilesClientCR
} from './generateImportGlobs/virtualModuleIdPageFiles'
type ResolvedId = NonNullable<Awaited<ReturnType<ThisParameterType<NonNullable<Plugin['resolveId']>>['resolve']>>> // same as `import type { ResolvedId } from 'rollup'` but safe when Vite updates Rollup version
//type ResolvedId = NonNullable<Awaited<ReturnType<ThisParameterType<NonNullable<Plugin['resolveId']>>['resolve']>>> // same as `import type { ResolvedId } from 'rollup'` but safe when Vite updates Rollup version
type ResolvedId = any // TODO

const extractAssetsRE = /(\?|&)extractAssets(?:&|$)/
const rawRE = /(\?|&)raw(?:&|$)/

0 comments on commit 137bc26

Please sign in to comment.