@macroforge/vite-plugin 0.1.77 → 0.1.78
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/package.json +3 -3
- package/src/index.js +3 -2
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"dependencies": {
|
|
3
|
-
"@macroforge/shared": "^0.1.
|
|
4
|
-
"macroforge": "^0.1.
|
|
3
|
+
"@macroforge/shared": "^0.1.78",
|
|
4
|
+
"macroforge": "^0.1.78"
|
|
5
5
|
},
|
|
6
6
|
"devDependencies": {
|
|
7
7
|
"@types/node": "^22.0.0"
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
},
|
|
31
31
|
"type": "module",
|
|
32
32
|
"types": "src/index.d.ts",
|
|
33
|
-
"version": "0.1.
|
|
33
|
+
"version": "0.1.78"
|
|
34
34
|
}
|
package/src/index.js
CHANGED
|
@@ -45,6 +45,7 @@ import * as fs from "node:fs";
|
|
|
45
45
|
import * as path from "node:path";
|
|
46
46
|
import {
|
|
47
47
|
collectExternalDecoratorModules,
|
|
48
|
+
hasMacroAnnotations,
|
|
48
49
|
loadMacroConfig,
|
|
49
50
|
} from "@macroforge/shared";
|
|
50
51
|
|
|
@@ -789,8 +790,8 @@ export async function macroforge() {
|
|
|
789
790
|
return null;
|
|
790
791
|
}
|
|
791
792
|
|
|
792
|
-
// Quick check: files without @derive
|
|
793
|
-
if (!code
|
|
793
|
+
// Quick check: skip files without a real @derive directive
|
|
794
|
+
if (!hasMacroAnnotations(code)) {
|
|
794
795
|
return null;
|
|
795
796
|
}
|
|
796
797
|
|