Skip to content

Commit

Permalink
fix: normalize component list filename to unix slashes
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Aug 14, 2023
1 parent 6d1a8c7 commit cf04480
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
* file that was distributed with this source code.
*/

import { slash } from '@poppinss/utils'
import { fileURLToPath } from 'node:url'
import string from '@poppinss/utils/string'
import { join, isAbsolute } from 'node:path'
Expand Down Expand Up @@ -63,7 +64,7 @@ export class Loader implements LoaderContract {
}).filter((file) => file.endsWith('.edge'))

return files.map((file) => {
const fileName = file.replace(/\.edge$/, '')
const fileName = slash(file).replace(/\.edge$/, '')
const componentPath = `${componentsDirName}/${fileName}`
const tagName = fileName
.split('/')
Expand Down

0 comments on commit cf04480

Please sign in to comment.