@lingui/react 6.0.0-next.2 → 6.0.0-next.3

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/macro/browser.mjs CHANGED
@@ -6,5 +6,6 @@ export const useLingui = function () {}
6
6
 
7
7
  throw new Error(
8
8
  `The macro you imported from "@lingui/react/macro" is being executed outside the context of compilation. \n` +
9
- `This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro"`,
9
+ `This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro" \n` +
10
+ "Additionally, dynamic imports — e.g., `await import('@lingui/react/macro')` — are not supported.",
10
11
  )
package/macro/index.mjs CHANGED
@@ -11,7 +11,8 @@ export default createMacro(macro, {
11
11
  function printError() {
12
12
  throw new Error(
13
13
  `The macro you imported from "@lingui/react/macro" is being executed outside the context of compilation. \n` +
14
- `This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro"`,
14
+ `This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro" \n` +
15
+ "Additionally, dynamic imports — e.g., `await import('@lingui/react/macro')` — are not supported.",
15
16
  )
16
17
  }
17
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/react",
3
- "version": "6.0.0-next.2",
3
+ "version": "6.0.0-next.3",
4
4
  "sideEffects": false,
5
5
  "description": "React components for translations",
6
6
  "type": "module",
@@ -71,8 +71,8 @@
71
71
  }
72
72
  },
73
73
  "dependencies": {
74
- "@lingui/babel-plugin-lingui-macro": "6.0.0-next.2",
75
- "@lingui/core": "6.0.0-next.2"
74
+ "@lingui/babel-plugin-lingui-macro": "6.0.0-next.3",
75
+ "@lingui/core": "6.0.0-next.3"
76
76
  },
77
77
  "devDependencies": {
78
78
  "@lingui/test-utils": "3.0.3",
@@ -87,5 +87,5 @@
87
87
  "unbuild": "3.6.1",
88
88
  "vitest": "4.0.18"
89
89
  },
90
- "gitHead": "f4bcdd555ceef0bed58b2f3075096efd4daaeec2"
90
+ "gitHead": "ebcb6dc8e8d327ae5775cadee931942ef309480f"
91
91
  }