File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -176,18 +176,6 @@ export function isAdditionalConfigFile(path: string) {
176
176
return additionalConfigRE . test ( path )
177
177
}
178
178
179
- /**
180
- * Make sure the path ends with a slash.
181
- * If path points to a file, remove the filename component.
182
- * @param path
183
- * @returns
184
- */
185
- function dirname ( path : string ) {
186
- const segments = path . split ( '/' )
187
- segments [ segments . length - 1 ] = ''
188
- return segments . join ( '/' )
189
- }
190
-
191
179
async function gatherAdditionalConfig (
192
180
root : string ,
193
181
command : 'serve' | 'build' ,
@@ -208,7 +196,7 @@ async function gatherAdditionalConfig(
208
196
209
197
const exports = await Promise . all (
210
198
candidates . map ( async ( file ) => {
211
- const id = '/' + dirname ( slash ( file ) )
199
+ const id = normalizePath ( `/ ${ path . dirname ( file ) } /` )
212
200
213
201
const configExports = await loadConfigFromFile (
214
202
{ command, mode } ,
You can’t perform that action at this time.
0 commit comments