@lingui/vite-plugin 3.17.1 → 3.17.2
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/CHANGELOG.md +13 -0
- package/README.md +1 -1
- package/build/index.d.ts +2 -2
- package/build/index.js +7 -0
- package/build/index.js.map +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,19 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [3.17.2](https://github.com/lingui/js-lingui/compare/v3.17.1...v3.17.2) (2023-02-24)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **vite:** externalize macro imports ([#1466](https://github.com/lingui/js-lingui/issues/1466)) ([1719430](https://github.com/lingui/js-lingui/commit/1719430498cc7dc5071b883cd301e6618ca41cbf))
|
|
12
|
+
* **vite-plugin:** change default export to named export ([#1465](https://github.com/lingui/js-lingui/issues/1465)) ([15510c1](https://github.com/lingui/js-lingui/commit/15510c1a30020669989a78ae6677679cd7562a87)), closes [#1450](https://github.com/lingui/js-lingui/issues/1450)
|
|
13
|
+
* **vite-plugin:** ship in dual package format for compatibility with Vite ([#1450](https://github.com/lingui/js-lingui/issues/1450)) ([e3a2b39](https://github.com/lingui/js-lingui/commit/e3a2b3936e9f2d74c1357c493537c3c291b4875f))
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
6
19
|
## [3.17.1](https://github.com/lingui/js-lingui/compare/v3.17.0...v3.17.1) (2023-02-07)
|
|
7
20
|
|
|
8
21
|
**Note:** Version bump only for package @lingui/vite-plugin
|
package/README.md
CHANGED
package/build/index.d.ts
CHANGED
package/build/index.js
CHANGED
|
@@ -3,6 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.lingui = void 0;
|
|
6
7
|
const conf_1 = require("@lingui/conf");
|
|
7
8
|
const api_1 = require("@lingui/cli/api");
|
|
8
9
|
const path_1 = __importDefault(require("path"));
|
|
@@ -11,6 +12,11 @@ function lingui(linguiConfig = {}) {
|
|
|
11
12
|
const config = (0, conf_1.getConfig)(linguiConfig);
|
|
12
13
|
return {
|
|
13
14
|
name: "vite-plugin-lingui",
|
|
15
|
+
config: (config) => {
|
|
16
|
+
// https://github.com/lingui/js-lingui/issues/1464
|
|
17
|
+
config.optimizeDeps.exclude = config.optimizeDeps.exclude || [];
|
|
18
|
+
config.optimizeDeps.exclude.push("@lingui/macro");
|
|
19
|
+
},
|
|
14
20
|
transform(src, id) {
|
|
15
21
|
if (fileRegex.test(id)) {
|
|
16
22
|
const catalogRelativePath = path_1.default.relative(config.rootDir, id);
|
|
@@ -37,5 +43,6 @@ function lingui(linguiConfig = {}) {
|
|
|
37
43
|
},
|
|
38
44
|
};
|
|
39
45
|
}
|
|
46
|
+
exports.lingui = lingui;
|
|
40
47
|
exports.default = lingui;
|
|
41
48
|
//# sourceMappingURL=index.js.map
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,uCAAwC;AACxC,yCAIwB;AACxB,gDAAuB;AAGvB,MAAM,SAAS,GAAG,SAAS,CAAA;AAQ3B,SAAgB,MAAM,CAAC,eAAiC,EAAE;IACxD,MAAM,MAAM,GAAG,IAAA,gBAAS,EAAC,YAAY,CAAC,CAAA;IAEtC,OAAO;QACL,IAAI,EAAE,oBAAoB;QAE1B,MAAM,EAAE,CAAC,MAAM,EA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I,EAAE,kCAAkC;iBAC9C,CAAA;aACF;QACH,CAAC;KACF,CAAA;AACH,CAAC;AA9CD,wBA8CC;AAED,kBAAe,MAAM,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lingui/vite-plugin",
|
|
3
|
-
"version": "3.17.
|
|
3
|
+
"version": "3.17.2",
|
|
4
4
|
"description": "Vite plugin for Lingui message catalogs",
|
|
5
5
|
"main": "./build/index.js",
|
|
6
6
|
"types": "./build/index.d.ts",
|
|
@@ -35,11 +35,11 @@
|
|
|
35
35
|
"build/"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@lingui/cli": "3.17.
|
|
39
|
-
"@lingui/conf": "3.17.
|
|
38
|
+
"@lingui/cli": "3.17.2",
|
|
39
|
+
"@lingui/conf": "3.17.2"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"vite": "3.2.4"
|
|
43
43
|
},
|
|
44
|
-
"gitHead": "
|
|
44
|
+
"gitHead": "31dcab5a9a8f88bfa8b3a2c7cd12aa2d908a1d80"
|
|
45
45
|
}
|