@lingui/babel-plugin-extract-messages 5.0.0-next.0 → 5.0.0-next.1
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.cjs +3 -1
- package/dist/index.mjs +3 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -137,7 +137,9 @@ function index({ types: t }) {
|
|
|
137
137
|
if (!isTransComponent(path))
|
|
138
138
|
return;
|
|
139
139
|
const attrs = node.openingElement.attributes || [];
|
|
140
|
-
if (
|
|
140
|
+
if (attrs.find(
|
|
141
|
+
(attr) => t.isJSXSpreadAttribute(attr) && hasI18nComment(attr.argument)
|
|
142
|
+
)) {
|
|
141
143
|
return;
|
|
142
144
|
}
|
|
143
145
|
const props = attrs.reduce((acc, item) => {
|
package/dist/index.mjs
CHANGED
|
@@ -135,7 +135,9 @@ function index({ types: t }) {
|
|
|
135
135
|
if (!isTransComponent(path))
|
|
136
136
|
return;
|
|
137
137
|
const attrs = node.openingElement.attributes || [];
|
|
138
|
-
if (
|
|
138
|
+
if (attrs.find(
|
|
139
|
+
(attr) => t.isJSXSpreadAttribute(attr) && hasI18nComment(attr.argument)
|
|
140
|
+
)) {
|
|
139
141
|
return;
|
|
140
142
|
}
|
|
141
143
|
const props = attrs.reduce((acc, item) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/babel-plugin-extract-messages",
|
|
3
|
-
"version": "5.0.0-next.
|
|
3
|
+
"version": "5.0.0-next.1",
|
|
4
4
|
"description": "Babel plugin for collecting messages from source code for internationalization",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -43,9 +43,9 @@
|
|
|
43
43
|
"@babel/core": "^7.21.0",
|
|
44
44
|
"@babel/traverse": "7.20.12",
|
|
45
45
|
"@babel/types": "^7.20.7",
|
|
46
|
-
"@lingui/babel-plugin-lingui-macro": "5.0.0-next.
|
|
46
|
+
"@lingui/babel-plugin-lingui-macro": "5.0.0-next.1",
|
|
47
47
|
"@lingui/jest-mocks": "3.0.3",
|
|
48
48
|
"unbuild": "2.0.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "7936155f7b29ecdc6191042a9a2e363962ab482d"
|
|
51
51
|
}
|