@intlayer/webpack 4.1.0 → 4.1.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/README.md +1 -2
- package/dist/cjs/webpack-plugin.cjs +6 -2
- package/dist/cjs/webpack-plugin.cjs.map +1 -1
- package/dist/esm/webpack-plugin.mjs +7 -3
- package/dist/esm/webpack-plugin.mjs.map +1 -1
- package/dist/types/webpack-plugin.d.ts +1 -1
- package/dist/types/webpack-plugin.d.ts.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<div align="center">
|
|
2
|
-
<a href="https://
|
|
2
|
+
<a href="https://intlayer.org">
|
|
3
3
|
<img src="https://raw.githubusercontent.com/aymericzip/intlayer/572ae9c9acafb74307b81530c1931a8e98990aef/docs/assets/logo.png" width="500" alt="intlayer" />
|
|
4
4
|
</a>
|
|
5
5
|
</div>
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
<a href="https://npmjs.org/package/intlayer">
|
|
15
15
|
<img alt="types included" src="https://badgen.net/npm/types/intlayer?labelColor=49516F&color=8994BC"
|
|
16
16
|
/>
|
|
17
|
-
</a>
|
|
18
17
|
</div>
|
|
19
18
|
|
|
20
19
|
# @intlayer/webpack: Use the Intlayer Webpack Plugin into your application
|
|
@@ -23,8 +23,12 @@ __export(webpack_plugin_exports, {
|
|
|
23
23
|
module.exports = __toCommonJS(webpack_plugin_exports);
|
|
24
24
|
var import_chokidar = require("@intlayer/chokidar");
|
|
25
25
|
class IntlayerPlugin {
|
|
26
|
-
apply() {
|
|
27
|
-
|
|
26
|
+
async apply() {
|
|
27
|
+
try {
|
|
28
|
+
await (0, import_chokidar.buildAndWatchIntlayer)();
|
|
29
|
+
} catch (error) {
|
|
30
|
+
console.error("Error in IntlayerPlugin:", error);
|
|
31
|
+
}
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/webpack-plugin.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/webpack-plugin.ts"],"sourcesContent":["import { buildAndWatchIntlayer } from '@intlayer/chokidar';\n\n// Watch mode or on time build\nexport class IntlayerPlugin {\n async apply(): Promise<void> {\n try {\n await buildAndWatchIntlayer();\n } catch (error) {\n console.error('Error in IntlayerPlugin:', error);\n }\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,sBAAsC;AAG/B,MAAM,eAAe;AAAA,EAC1B,MAAM,QAAuB;AAC3B,QAAI;AACF,gBAAM,uCAAsB;AAAA,IAC9B,SAAS,OAAO;AACd,cAAQ,MAAM,4BAA4B,KAAK;AAAA,IACjD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { buildAndWatchIntlayer } from "@intlayer/chokidar";
|
|
2
2
|
class IntlayerPlugin {
|
|
3
|
-
apply() {
|
|
4
|
-
|
|
3
|
+
async apply() {
|
|
4
|
+
try {
|
|
5
|
+
await buildAndWatchIntlayer();
|
|
6
|
+
} catch (error) {
|
|
7
|
+
console.error("Error in IntlayerPlugin:", error);
|
|
8
|
+
}
|
|
5
9
|
}
|
|
6
10
|
}
|
|
7
11
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/webpack-plugin.ts"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"sources":["../../src/webpack-plugin.ts"],"sourcesContent":["import { buildAndWatchIntlayer } from '@intlayer/chokidar';\n\n// Watch mode or on time build\nexport class IntlayerPlugin {\n async apply(): Promise<void> {\n try {\n await buildAndWatchIntlayer();\n } catch (error) {\n console.error('Error in IntlayerPlugin:', error);\n }\n }\n}\n"],"mappings":"AAAA,SAAS,6BAA6B;AAG/B,MAAM,eAAe;AAAA,EAC1B,MAAM,QAAuB;AAC3B,QAAI;AACF,YAAM,sBAAsB;AAAA,IAC9B,SAAS,OAAO;AACd,cAAQ,MAAM,4BAA4B,KAAK;AAAA,IACjD;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webpack-plugin.d.ts","sourceRoot":"","sources":["../../src/webpack-plugin.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;
|
|
1
|
+
{"version":3,"file":"webpack-plugin.d.ts","sourceRoot":"","sources":["../../src/webpack-plugin.ts"],"names":[],"mappings":"AAGA,qBAAa,cAAc;IACnB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;CAO7B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intlayer/webpack",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Webpack plugin for seamless integration with Intlayer, enhancing JavaScript apps built with React, Next.js and more.",
|
|
6
6
|
"keywords": [
|
|
@@ -60,8 +60,8 @@
|
|
|
60
60
|
"fast-glob": "^3.3.3",
|
|
61
61
|
"webpack": "^5.97.1",
|
|
62
62
|
"webpack-dev-server": "^5.2.0",
|
|
63
|
-
"@intlayer/chokidar": "4.1.
|
|
64
|
-
"@intlayer/config": "4.1.
|
|
63
|
+
"@intlayer/chokidar": "4.1.2",
|
|
64
|
+
"@intlayer/config": "4.1.2"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@changesets/cli": "2.27.11",
|
|
@@ -76,14 +76,14 @@
|
|
|
76
76
|
"tsup": "^8.3.5",
|
|
77
77
|
"typescript": "^5.7.3",
|
|
78
78
|
"@utils/eslint-config": "1.0.4",
|
|
79
|
-
"@utils/ts-config-types": "1.0.4",
|
|
80
79
|
"@utils/ts-config": "1.0.4",
|
|
80
|
+
"@utils/ts-config-types": "1.0.4",
|
|
81
81
|
"@utils/tsup-config": "1.0.4"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"webpack": "^5.96.1",
|
|
85
|
-
"@intlayer/chokidar": "4.1.
|
|
86
|
-
"@intlayer/config": "4.1.
|
|
85
|
+
"@intlayer/chokidar": "4.1.2",
|
|
86
|
+
"@intlayer/config": "4.1.2"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=14.18"
|