gonia 0.2.3 → 0.2.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.
- package/dist/vite/plugin.js +3 -1
- package/package.json +1 -1
package/dist/vite/plugin.js
CHANGED
|
@@ -351,7 +351,9 @@ export function gonia(options = {}) {
|
|
|
351
351
|
detected.delete(name);
|
|
352
352
|
}
|
|
353
353
|
// Generate imports if we found directives and haven't already
|
|
354
|
-
|
|
354
|
+
// Skip HTML files - they're scanned for detection but imports go in JS
|
|
355
|
+
const isHtmlFile = /\.html$/.test(id);
|
|
356
|
+
if (detected.size > 0 && !injectedModules.has(id) && !isHtmlFile) {
|
|
355
357
|
// Check if this file already imports from gonia/directives
|
|
356
358
|
const hasGoniaImport = code.includes("from 'gonia/directives'") ||
|
|
357
359
|
code.includes('from "gonia/directives"');
|