File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/slidev/node/plugins Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ import equal from 'fast-deep-equal'
12
12
import { existsSync } from 'fs-extra'
13
13
import type { Connect } from 'vite'
14
14
import { ResolvedSlidevOptions , SlidevPluginOptions } from '../options'
15
- import { toAtFS } from '../utils'
15
+ import { resolveImportPath , toAtFS } from '../utils'
16
16
17
17
const regexId = / ^ \/ \@ s l i d e v \/ s l i d e \/ ( \d + ) \. ( m d | j s o n ) (?: \? i m p o r t ) ? $ /
18
18
const regexIdQuery = / ( \d + ?) \. ( m d | j s o n ) $ /
@@ -331,7 +331,7 @@ export function createSlidesLoader(
331
331
}
332
332
333
333
if ( data . features . katex )
334
- imports . push ( ' import "katex/dist/katex.min.css"' )
334
+ imports . push ( ` import "${ toAtFS ( resolveImportPath ( ' katex/dist/katex.min.css' , true ) ) } "` )
335
335
336
336
return imports . join ( '\n' )
337
337
}
You can’t perform that action at this time.
0 commit comments