File tree 4 files changed +9
-3
lines changed
4 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## 0.2.0
4
+
5
+ Breaking: Use named export instead of default export for better esm/cjs interop. Closes #2
6
+
7
+ To migrate, replace your import by ` import { svgPlugin } from "vite-plugin-fast-react-svg"; `
8
+
3
9
## 0.1.4
4
10
5
11
Add vite@3 to peer dependency range
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ In your vite config:
18
18
19
19
``` ts
20
20
import { defineConfig } from " vite" ;
21
- import svgPlugin from " vite-plugin-fast-react-svg" ;
21
+ import { svgPlugin } from " vite-plugin-fast-react-svg" ;
22
22
23
23
export default defineConfig ({
24
24
plugins: [svgPlugin ()],
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " vite-plugin-fast-react-svg" ,
3
3
"description" : " Turn SVG into React components, without Babel" ,
4
- "version" : " 0.1.4 " ,
4
+ "version" : " 0.2.0 " ,
5
5
"license" : " MIT" ,
6
6
"author" : " Arnaud Barré (https://github.com/ArnaudBarre)" ,
7
7
"main" : " dist/index.js" ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import { readFileSync } from "fs";
2
2
import { transform } from "esbuild" ;
3
3
import { Plugin } from "vite" ;
4
4
5
- export default function svgPlugin ( ) : Plugin {
5
+ export function svgPlugin ( ) : Plugin {
6
6
return {
7
7
name : "svg" ,
8
8
enforce : "pre" ,
You can’t perform that action at this time.
0 commit comments