Skip to content

Commit

Permalink
fix: use basename to get svg name
Browse files Browse the repository at this point in the history
Closes #200
  • Loading branch information
Dante-dan committed Nov 28, 2023
1 parent 32519c3 commit 6667390
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/loaders/vite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ export function svgLoader(options?: SvgLoaderOptions) {
.replace(/<style/g, '<component is="style"')
.replace(/<\/style/g, '</component')

const svgName = basename(path, extname(path));
const svgName = basename(path, extname(path))

let { code } = compileTemplate({
id: JSON.stringify(id),
Expand Down

0 comments on commit 6667390

Please sign in to comment.