We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6efd2d7 commit 70eead7Copy full SHA for 70eead7
src/index.ts
@@ -22,7 +22,8 @@ export default function vitePluginSvgr({
22
23
return {
24
name: "vite-plugin-svgr",
25
- async transform(code, id) {
+ enforce: "pre", // to override `vite:asset`'s behavior
26
+ async load(id) {
27
if (filter(id)) {
28
const { transform } = await import("@svgr/core");
29
const { default: jsx } = await import("@svgr/plugin-jsx");
0 commit comments