Skip to content

Commit 1e421bf

Browse files
[ci] release (#884)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 0c24ea1 commit 1e421bf

File tree

3 files changed

+23
-22
lines changed

3 files changed

+23
-22
lines changed

.changeset/stale-steaks-brush.md

Lines changed: 0 additions & 21 deletions
This file was deleted.

packages/compiler/CHANGELOG.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,27 @@
11
# @astrojs/compiler
22

3+
## 2.3.0
4+
5+
### Minor Changes
6+
7+
- 0c24ea1: Add a new `annotateSourceFile` option. This option makes it so the compiler will annotate every element with its source file location. This is notably useful for dev tools to be able to provide features like a "Open in editor" button. This option is disabled by default.
8+
9+
```html
10+
<div>
11+
<span>hello world</span>
12+
</div>
13+
```
14+
15+
Results in:
16+
17+
```html
18+
<div data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="1:1">
19+
<span data-astro-source-file="/Users/erika/Projects/..." data-astro-source-loc="2:2">hello world</span>
20+
</div>
21+
```
22+
23+
In Astro, this option is enabled only in development mode.
24+
325
## 2.2.2
426

527
### Patch Changes

packages/compiler/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "module",
66
"bugs": "https://github.com/withastro/compiler/issues",
77
"homepage": "https://astro.build",
8-
"version": "2.2.2",
8+
"version": "2.3.0",
99
"scripts": {
1010
"build": "tsup"
1111
},

0 commit comments

Comments
 (0)