defuss-astro 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +10 -5
- package/dist/index.mjs +10 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -30,11 +30,16 @@ function defussVitePlugin({
|
|
|
30
30
|
enforce: "pre",
|
|
31
31
|
config() {
|
|
32
32
|
return {
|
|
33
|
-
|
|
34
|
-
// we want Vite to handle JSX transformations
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
oxc: {
|
|
34
|
+
// we want Vite to handle JSX transformations.
|
|
35
|
+
// NOTE: `oxc` replaces the deprecated `esbuild` key in Vite 8+.
|
|
36
|
+
jsx: {
|
|
37
|
+
importSource: "defuss",
|
|
38
|
+
factory: "jsx",
|
|
39
|
+
fragment: "Fragment",
|
|
40
|
+
development: true
|
|
41
|
+
// enable sourceInfo for better hydration and debugging
|
|
42
|
+
}
|
|
38
43
|
},
|
|
39
44
|
optimizeDeps: {
|
|
40
45
|
// we want Vite to optimize the runtime code
|
package/dist/index.mjs
CHANGED
|
@@ -26,11 +26,16 @@ function defussVitePlugin({
|
|
|
26
26
|
enforce: "pre",
|
|
27
27
|
config() {
|
|
28
28
|
return {
|
|
29
|
-
|
|
30
|
-
// we want Vite to handle JSX transformations
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
oxc: {
|
|
30
|
+
// we want Vite to handle JSX transformations.
|
|
31
|
+
// NOTE: `oxc` replaces the deprecated `esbuild` key in Vite 8+.
|
|
32
|
+
jsx: {
|
|
33
|
+
importSource: "defuss",
|
|
34
|
+
factory: "jsx",
|
|
35
|
+
fragment: "Fragment",
|
|
36
|
+
development: true
|
|
37
|
+
// enable sourceInfo for better hydration and debugging
|
|
38
|
+
}
|
|
34
39
|
},
|
|
35
40
|
optimizeDeps: {
|
|
36
41
|
// we want Vite to optimize the runtime code
|