@lingui/vite-plugin 5.4.0 → 5.4.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 CHANGED
@@ -32,6 +32,15 @@ function lingui({
32
32
  This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro"Please see the documentation for how to configure Vite with Lingui correctly: https://lingui.dev/tutorials/setup-vite`
33
33
  );
34
34
  }
35
+ },
36
+ resolveDynamicImport(id, importer) {
37
+ if (macroIds.has(id)) {
38
+ throw new Error(
39
+ `The macro you imported from "${id}" cannot be dynamically imported.
40
+ Please check the import statement in file "${importer}".
41
+ Please see the documentation for how to configure Vite with Lingui correctly: https://lingui.dev/tutorials/setup-vite`
42
+ );
43
+ }
35
44
  }
36
45
  },
37
46
  {
package/dist/index.mjs CHANGED
@@ -24,6 +24,15 @@ function lingui({
24
24
  This indicates that you don't configured correctly one of the "babel-plugin-macros" / "@lingui/swc-plugin" / "babel-plugin-lingui-macro"Please see the documentation for how to configure Vite with Lingui correctly: https://lingui.dev/tutorials/setup-vite`
25
25
  );
26
26
  }
27
+ },
28
+ resolveDynamicImport(id, importer) {
29
+ if (macroIds.has(id)) {
30
+ throw new Error(
31
+ `The macro you imported from "${id}" cannot be dynamically imported.
32
+ Please check the import statement in file "${importer}".
33
+ Please see the documentation for how to configure Vite with Lingui correctly: https://lingui.dev/tutorials/setup-vite`
34
+ );
35
+ }
27
36
  }
28
37
  },
29
38
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingui/vite-plugin",
3
- "version": "5.4.0",
3
+ "version": "5.4.1",
4
4
  "description": "Vite plugin for Lingui message catalogs",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.mjs",
@@ -41,18 +41,18 @@
41
41
  "dist/"
42
42
  ],
43
43
  "dependencies": {
44
- "@lingui/cli": "5.4.0",
45
- "@lingui/conf": "5.4.0"
44
+ "@lingui/cli": "5.4.1",
45
+ "@lingui/conf": "5.4.1"
46
46
  },
47
47
  "peerDependencies": {
48
48
  "vite": "^3 || ^4 || ^5.0.9 || ^6 || ^7"
49
49
  },
50
50
  "devDependencies": {
51
- "@lingui/core": "^5.4.0",
52
- "@lingui/format-json": "^5.4.0",
51
+ "@lingui/core": "^5.4.1",
52
+ "@lingui/format-json": "^5.4.1",
53
53
  "unbuild": "2.0.0",
54
54
  "vite": "6.0.2",
55
55
  "vite-plugin-babel-macros": "^1.0.6"
56
56
  },
57
- "gitHead": "ce0d17bd0874f5f4f01fd073749f29087835a315"
57
+ "gitHead": "296f115904bae526cd4b4807bbdc373b2e50822b"
58
58
  }