@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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.js +3 -2
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "dependencies": {
3
- "@macroforge/shared": "^0.1.77",
4
- "macroforge": "^0.1.77"
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.77"
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 can't have macros — skip entirely
793
- if (!code.includes("@derive")) {
793
+ // Quick check: skip files without a real @derive directive
794
+ if (!hasMacroAnnotations(code)) {
794
795
  return null;
795
796
  }
796
797