File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
packages/preset-umi/src/features/appData Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1- import { getNpmClient , importLazy } from '@umijs/utils' ;
1+ import { getNpmClient , importLazy , winPath } from '@umijs/utils' ;
22import { existsSync , readFileSync } from 'fs' ;
33import { join , resolve } from 'path' ;
44import { parse } from '../../../compiled/ini' ;
@@ -154,9 +154,10 @@ export default (api: IApi) => {
154154 [ ] ,
155155 ) ;
156156
157- const globalLoading = expandJSPaths ( join ( absSrcPath , 'loading' ) ) . find (
157+ const loadingFile = expandJSPaths ( join ( absSrcPath , 'loading' ) ) . find (
158158 existsSync ,
159159 ) ;
160+ const globalLoading = loadingFile ? winPath ( loadingFile ) : undefined ;
160161
161162 const overridesCSS = [ getOverridesCSS ( api . paths . absSrcPath ) ] . filter (
162163 Boolean ,
You can’t perform that action at this time.
0 commit comments