@reticlehq/babel-plugin 2.11.0 → 2.13.0
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/dist/index.js +2 -2
- package/package.json +4 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const node_path_1 = require("node:path");
|
|
3
|
-
|
|
4
|
-
const SOURCE_ATTR =
|
|
3
|
+
const source_constants_1 = require("@reticlehq/core/source-constants");
|
|
4
|
+
const SOURCE_ATTR = source_constants_1.DATA_RETICLE_SOURCE_ATTR;
|
|
5
5
|
/**
|
|
6
6
|
* Stamps `data-reticle-source="relativeFile:line:col"` on every JSX host element (lowercase
|
|
7
7
|
* tag). @reticlehq/react reads it to map a DOM node back to its source — needed on React 19,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reticlehq/babel-plugin",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.13.0",
|
|
4
4
|
"description": "Babel plugin that stamps data-reticle-source=\"file:line:col\" on JSX host elements so @reticlehq/react can map a DOM node to its source (works on React 19, which dropped _debugSource).",
|
|
5
5
|
"type": "commonjs",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,6 +34,9 @@
|
|
|
34
34
|
"README.md",
|
|
35
35
|
"NOTICE"
|
|
36
36
|
],
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"@reticlehq/core": "2.13.0"
|
|
39
|
+
},
|
|
37
40
|
"peerDependencies": {
|
|
38
41
|
"@babel/core": "^7"
|
|
39
42
|
},
|