Commit 8abfb24
authored
fix: avoid unnecessary source map rewriting for files without directives (#20)
- Add hasDirective check in transform method to skip processing when no preprocessor directives are found
- This prevents unnecessary source map modifications that conflict with vite-plugin-vue-tracer
- Fixes Nuxt DevTools element selection functionality by preserving correct source maps
- Only processes files that actually contain #if, #define, #message, or other directives1 parent fe4d2b6 commit 8abfb24
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
81 | 84 | | |
82 | 85 | | |
83 | 86 | | |
| |||
0 commit comments