@@ -3,7 +3,7 @@ import path from 'node:path'
3
3
import { objectMap , uniq } from '@antfu/utils'
4
4
import Debug from 'debug'
5
5
import fg from 'fast-glob'
6
- import mm from 'micromatch '
6
+ import pm from 'picomatch '
7
7
import { resolveAddons } from './integrations/addons'
8
8
import { getThemeMeta , resolveTheme } from './integrations/themes'
9
9
import { parser } from './parser'
@@ -76,7 +76,7 @@ export async function resolveOptions(
76
76
77
77
export async function createDataUtils ( resolved : Omit < ResolvedSlidevOptions , 'utils' > ) : Promise < ResolvedSlidevUtils > {
78
78
const monacoTypesIgnorePackagesMatches = ( resolved . data . config . monacoTypesIgnorePackages || [ ] )
79
- . map ( i => mm . matcher ( i ) )
79
+ . map ( i => pm . makeRe ( i ) )
80
80
81
81
let _layouts_cache_time = 0
82
82
let _layouts_cache : Record < string , string > = { }
@@ -87,7 +87,7 @@ export async function createDataUtils(resolved: Omit<ResolvedSlidevOptions, 'uti
87
87
indexHtml : setupIndexHtml ( resolved ) ,
88
88
define : getDefine ( resolved ) ,
89
89
iconsResolvePath : [ resolved . clientRoot , ...resolved . roots ] . reverse ( ) ,
90
- isMonacoTypesIgnored : pkg => monacoTypesIgnorePackagesMatches . some ( i => i ( pkg ) ) ,
90
+ isMonacoTypesIgnored : pkg => monacoTypesIgnorePackagesMatches . some ( i => i . test ( pkg ) ) ,
91
91
getLayouts : ( ) => {
92
92
const now = Date . now ( )
93
93
if ( now - _layouts_cache_time < 2000 )
0 commit comments