Releases: nguyenvanduocit/vite-plugin-ai-annotator
Releases · nguyenvanduocit/vite-plugin-ai-annotator
Release list
v3.0.2
v1.16.2
v1.16.1
v1.16.0
v1.15.0
Full Changelog: v1.14.16...v1.15.0
v1.14.16
Full Changelog: v1.14.15...v1.14.16
v1.1.0 - Source Location for Vanilla HTML
What's New
Source Location Injection for Vanilla HTML 🎯
Now supports precise line number detection for vanilla HTML/JS projects - no framework required!
How it works:
- Vite plugin transforms HTML files during dev
- Injects
data-source-locattributes with file:line:column info - Annotator reads these attributes to show exact source location
<!-- Before -->
<div class="container">
<button>Click me</button>
</div>
<!-- After (dev mode) -->
<div class="container" data-source-loc="src/index.html:5:1">
<button data-source-loc="src/index.html:6:3">Click me</button>
</div>Configuration
// vite.config.ts
aiAnnotator({
injectSourceLoc: true // default: true
})Improved Keyboard Handling
- Follows industry standard patterns (LocatorJS, click-to-component)
- No longer blocks all keyboard events during inspection
- Allows typing in comment forms and page shortcuts to work
Dependencies
- Added
magic-stringfor efficient source transformation
Full Changelog: v1.0.2...v1.1.0