Commit 2ab6e6e 1 parent 8004917 commit 2ab6e6e Copy full SHA for 2ab6e6e
File tree 1 file changed +9
-6
lines changed
1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ import fastGlob from 'fast-glob'
15
15
import getModuleDependencies from './lib/getModuleDependencies'
16
16
import log from './util/log'
17
17
import packageJson from '../package.json'
18
+ import normalizePath from 'normalize-path'
18
19
19
20
let env = {
20
21
DEBUG : process . env . DEBUG !== undefined ,
@@ -437,12 +438,14 @@ async function build() {
437
438
}
438
439
439
440
function extractFileGlobs ( config ) {
440
- return extractContent ( config ) . filter ( ( file ) => {
441
- // Strings in this case are files / globs. If it is something else,
442
- // like an object it's probably a raw content object. But this object
443
- // is not watchable, so let's remove it.
444
- return typeof file === 'string'
445
- } )
441
+ return extractContent ( config )
442
+ . filter ( ( file ) => {
443
+ // Strings in this case are files / globs. If it is something else,
444
+ // like an object it's probably a raw content object. But this object
445
+ // is not watchable, so let's remove it.
446
+ return typeof file === 'string'
447
+ } )
448
+ . map ( ( glob ) => normalizePath ( glob ) )
446
449
}
447
450
448
451
function extractRawContent ( config ) {
You can’t perform that action at this time.
0 commit comments