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 CHANGED
@@ -30,11 +30,16 @@ function defussVitePlugin({
30
30
  enforce: "pre",
31
31
  config() {
32
32
  return {
33
- esbuild: {
34
- // we want Vite to handle JSX transformations
35
- jsxImportSource: "defuss",
36
- jsxFactory: "jsx",
37
- jsxFragment: "Fragment"
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
- esbuild: {
30
- // we want Vite to handle JSX transformations
31
- jsxImportSource: "defuss",
32
- jsxFactory: "jsx",
33
- jsxFragment: "Fragment"
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
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "defuss-astro",
3
- "version": "1.7.0",
3
+ "version": "1.8.0",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"