astro-blog-kit 0.3.3 → 0.3.4

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.
Files changed (2) hide show
  1. package/integration.ts +15 -15
  2. package/package.json +1 -1
package/integration.ts CHANGED
@@ -88,21 +88,21 @@ function createThemePlugin(theme: BlogTheme): Plugin {
88
88
  }
89
89
  },
90
90
  // Fuerza el tipo del módulo como CSS para que Vite lo trate correctamente
91
- transform(code, id) {
92
- if (id === RESOLVED_VIRTUAL_MODULE_ID) {
93
- return {
94
- code: `
95
- const style = document.createElement('style');
96
- style.id = 'astro-blog-kit-theme';
97
- style.textContent = ${JSON.stringify(css)};
98
- if (!document.getElementById('astro-blog-kit-theme')) {
99
- document.head.appendChild(style);
100
- }
101
- `.trim(),
102
- map: null,
103
- };
104
- }
105
- },
91
+ // transform(code, id) {
92
+ // if (id === RESOLVED_VIRTUAL_MODULE_ID) {
93
+ // return {
94
+ // code: `
95
+ // const style = document.createElement('style');
96
+ // style.id = 'astro-blog-kit-theme';
97
+ // style.textContent = ${JSON.stringify(css)};
98
+ // if (!document.getElementById('astro-blog-kit-theme')) {
99
+ // document.head.appendChild(style);
100
+ // }
101
+ // `.trim(),
102
+ // map: null,
103
+ // };
104
+ // }
105
+ // },
106
106
  };
107
107
  }
108
108
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-blog-kit",
3
- "version": "0.3.3",
3
+ "version": "0.3.4",
4
4
  "description": "A ready-to-use blog system for Astro with WordPress headless support, optional i18n, multiple layouts, and a comment system.",
5
5
  "type": "module",
6
6
  "license": "MIT",