Skip to content
This repository has been archived by the owner on Jul 29, 2022. It is now read-only.

Commit

Permalink
Fix svgr import
Browse files Browse the repository at this point in the history
  • Loading branch information
lucsky committed Aug 20, 2021
1 parent a0a9d04 commit 92667c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import esbuild from 'esbuild';
import type { Plugin } from 'vite';

// Use require to prevent missing declaration file typescript errors
const svgr = require('@svgr/core');
const svgr = require('@svgr/core').default;

export default function svgrPlugin(): Plugin {
const transformed: Array<string> = [];
Expand Down

0 comments on commit 92667c5

Please sign in to comment.