@lingui/loader 5.9.0 → 6.0.0-next.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.cjs CHANGED
@@ -74,6 +74,5 @@ You see this error because \`failOnMissing=true\` in Lingui Loader configuration
74
74
  }
75
75
  return code;
76
76
  };
77
- const loader$1 = loader;
78
77
 
79
- module.exports = loader$1;
78
+ module.exports = loader;
package/dist/index.d.cts CHANGED
@@ -13,4 +13,4 @@ type LinguiLoaderOptions = {
13
13
  };
14
14
  declare const loader: LoaderDefinitionFunction<LinguiLoaderOptions>;
15
15
 
16
- export { loader as default };
16
+ export = loader;
package/dist/index.mjs CHANGED
@@ -68,6 +68,5 @@ You see this error because \`failOnMissing=true\` in Lingui Loader configuration
68
68
  }
69
69
  return code;
70
70
  };
71
- const loader$1 = loader;
72
71
 
73
- export { loader$1 as default };
72
+ export { loader as default };
package/package.json CHANGED
@@ -1,10 +1,11 @@
1
1
  {
2
2
  "name": "@lingui/loader",
3
- "version": "5.9.0",
3
+ "version": "6.0.0-next.0",
4
+ "type": "module",
4
5
  "description": "webpack loader for lingui message catalogs",
5
- "types": "./dist/index.d.ts",
6
- "main": "./dist/index.cjs",
7
- "module": "./dist/index.mjs",
6
+ "exports": {
7
+ ".": "./dist/index.cjs"
8
+ },
8
9
  "sideEffects": false,
9
10
  "author": {
10
11
  "name": "Tomáš Ehrlich",
@@ -23,8 +24,8 @@
23
24
  "multilingual"
24
25
  ],
25
26
  "scripts": {
26
- "build": "rimraf ./dist && unbuild",
27
- "stub": "unbuild --stub"
27
+ "build": "unbuild",
28
+ "check-types": "tsc --noEmit"
28
29
  },
29
30
  "homepage": "https://lingui.dev",
30
31
  "repository": {
@@ -36,7 +37,7 @@
36
37
  "url": "https://github.com/lingui/js-lingui/issues"
37
38
  },
38
39
  "engines": {
39
- "node": ">=20.0.0"
40
+ "node": ">=22.19.0"
40
41
  },
41
42
  "files": [
42
43
  "LICENSE",
@@ -44,17 +45,21 @@
44
45
  "dist/"
45
46
  ],
46
47
  "dependencies": {
47
- "@babel/runtime": "^7.20.13",
48
- "@lingui/cli": "5.9.0",
49
- "@lingui/conf": "5.9.0"
48
+ "@lingui/cli": "6.0.0-next.0",
49
+ "@lingui/conf": "6.0.0-next.0"
50
50
  },
51
51
  "devDependencies": {
52
- "@lingui/format-json": "5.9.0",
53
- "unbuild": "2.0.0",
52
+ "@lingui/format-json": "6.0.0-next.0",
53
+ "jiti": "^2.6.1",
54
+ "unbuild": "3.6.1",
55
+ "vitest": "4.0.18",
54
56
  "webpack": "^5.76.1"
55
57
  },
56
58
  "peerDependencies": {
57
59
  "webpack": "^5.0.0"
58
60
  },
59
- "gitHead": "491d4c17651c3f76116fe7f63f6bb8a554bef8da"
61
+ "unbuild": {
62
+ "declaration": "node16"
63
+ },
64
+ "gitHead": "a9576050487a4f7dfbc88db20814d5a1bb861c8c"
60
65
  }
package/dist/index.d.ts DELETED
@@ -1,16 +0,0 @@
1
- import { LoaderDefinitionFunction } from 'webpack';
2
-
3
- type LinguiLoaderOptions = {
4
- config?: string;
5
- /**
6
- * If true would fail compilation on missing translations
7
- **/
8
- failOnMissing?: boolean;
9
- /**
10
- * If true would fail compilation on message compilation errors
11
- **/
12
- failOnCompileError?: boolean;
13
- };
14
- declare const loader: LoaderDefinitionFunction<LinguiLoaderOptions>;
15
-
16
- export { loader as default };