zephyr-webpack-plugin 0.0.50 → 0.0.51
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
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
<div align="center">
|
|
4
4
|
|
|
5
|
-
[Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
|
|
5
|
+
[Zephyr Cloud](https://zephyr-cloud.io) | [Zephyr Docs](https://docs.zephyr-cloud.io/recipes/) | [Discord](https://zephyr-cloud.io/discord) | [Twitter](https://x.com/ZephyrCloudIO) | [LinkedIn](https://www.linkedin.com/company/zephyr-cloud/)
|
|
6
6
|
|
|
7
7
|
<hr/>
|
|
8
8
|
<img src="https://cdn.prod.website-files.com/669061ee3adb95b628c3acda/66981c766e352fe1f57191e2_Opengraph-zephyr.png" alt="Zephyr Logo" />
|
|
@@ -10,6 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
A Webpack plugin for deploying applications with Zephyr Cloud. This plugin integrates seamlessly with Webpack's ecosystem to enable deployment of your applications with comprehensive Module Federation support.
|
|
12
12
|
|
|
13
|
+
For more information please refer to our [documentation](https://docs.zephyr-cloud.io/recipes).
|
|
14
|
+
|
|
13
15
|
## Installation
|
|
14
16
|
|
|
15
17
|
```bash
|
|
@@ -131,34 +133,6 @@ const config = {
|
|
|
131
133
|
module.exports = withZephyr()(config);
|
|
132
134
|
```
|
|
133
135
|
|
|
134
|
-
## Configuration Options
|
|
135
|
-
|
|
136
|
-
The `withZephyr` function accepts configuration options:
|
|
137
|
-
|
|
138
|
-
```javascript
|
|
139
|
-
withZephyr({
|
|
140
|
-
// Enable/disable deployment
|
|
141
|
-
deploy: true,
|
|
142
|
-
|
|
143
|
-
// Deployment environment
|
|
144
|
-
environment: 'production',
|
|
145
|
-
|
|
146
|
-
// Module Federation configuration (if not using external plugin)
|
|
147
|
-
moduleFederation: {
|
|
148
|
-
name: 'my-app',
|
|
149
|
-
remotes: {},
|
|
150
|
-
exposes: {},
|
|
151
|
-
shared: {},
|
|
152
|
-
},
|
|
153
|
-
|
|
154
|
-
// Additional metadata
|
|
155
|
-
metadata: {
|
|
156
|
-
version: '1.0.0',
|
|
157
|
-
description: 'My Webpack app',
|
|
158
|
-
},
|
|
159
|
-
});
|
|
160
|
-
```
|
|
161
|
-
|
|
162
136
|
## Features
|
|
163
137
|
|
|
164
138
|
- 🏗️ Full Module Federation support with Webpack 5
|
package/dist/package.json
CHANGED
|
@@ -19,7 +19,7 @@ async function _zephyr_configuration(config, _zephyrOptions) {
|
|
|
19
19
|
const resolved_dependency_pairs = await zephyr_engine.resolve_remote_dependencies(dependencyPairs);
|
|
20
20
|
(0, zephyr_xpack_internal_1.mutWebpackFederatedRemotesConfig)(zephyr_engine, config, resolved_dependency_pairs);
|
|
21
21
|
const mfConfig = (0, zephyr_xpack_internal_1.makeCopyOfModuleFederationOptions)(config);
|
|
22
|
-
|
|
22
|
+
zephyr_agent_1.ze_log.mf(`with-zephyr.mfConfig: ${JSON.stringify(mfConfig, null, 2)}`);
|
|
23
23
|
// inject the ZephyrWebpackPlugin
|
|
24
24
|
config.plugins?.push(new ze_webpack_plugin_1.ZeWebpackPlugin({
|
|
25
25
|
zephyr_engine,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"with-zephyr.js","sourceRoot":"","sources":["../../src/webpack-plugin/with-zephyr.ts"],"names":[],"mappings":";;AAWA,gCAEC;AAZD,+CAAwE;AACxE,iEAI+B;AAG/B,2DAAsD;AAEtD,SAAgB,UAAU,CAAC,mBAAgD;IACzE,OAAO,CAAC,MAAqB,EAAE,EAAE,CAAC,qBAAqB,CAAC,MAAM,EAAE,mBAAmB,CAAC,CAAC;AACvF,CAAC;AAED,KAAK,UAAU,qBAAq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CAAC;QAEnF,MAAM,QAAQ,GAAG,IAAA,yDAAiC,EAAC,MAAM,CAAC,CAAC;QAE3D,qBAAM,CAAC,EAAE,CAAC,yBAAyB,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QAExE,iCAAiC;QACjC,MAAM,CAAC,OAAO,EAAE,IAAI,CAClB,IAAI,mCAAe,CAAC;YAClB,aAAa;YACb,QAAQ,EAAE,QAAQ;YAClB,mBAAmB,EAAE,cAAc,EAAE,mBAAmB;SACzD,CAAC,CACH,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAA,oBAAK,EAAC,OAAO,EAAE,0BAAW,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;IAC5C,CAAC;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -9,6 +9,7 @@ class ZeWebpackPlugin {
|
|
|
9
9
|
}
|
|
10
10
|
apply(compiler) {
|
|
11
11
|
this._options.zephyr_engine.buildProperties.output = compiler.outputPath;
|
|
12
|
+
(0, zephyr_xpack_internal_1.detectAndStoreBaseHref)(this._options.zephyr_engine, compiler);
|
|
12
13
|
(0, zephyr_xpack_internal_1.logBuildSteps)(this._options, compiler);
|
|
13
14
|
(0, zephyr_xpack_internal_1.setupZeDeploy)(this._options, compiler);
|
|
14
15
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ze-webpack-plugin.js","sourceRoot":"","sources":["../../src/webpack-plugin/ze-webpack-plugin.ts"],"names":[],"mappings":";;;AAIA,
|
|
1
|
+
{"version":3,"file":"ze-webpack-plugin.js","sourceRoot":"","sources":["../../src/webpack-plugin/ze-webpack-plugin.ts"],"names":[],"mappings":";;;AAIA,iEAI+B;AAE/B,MAAM,UAAU,GAAG,iBAAiB,CAAC;AAarC,MAAa,eAAe;IAG1B,YAAY,OAA+D;QACzE,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,EAAE,OAAO,CAAC,CAAC;IACzD,CAAC;IAED,KAAK,CAAC,QAAkB;QACtB,IAAI,CAAC,QAAQ,CAAC,aAAa,CAAC,eAAe,CAAC,MAAM,GAAG,QAAQ,CAAC,UAAU,CAAC;QACzE,IAAA,8CAAsB,EAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,QAAQ,CAAC,CAAC;QAC9D,IAAA,qCAAa,EAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;QACvC,IAAA,qCAAa,EAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;IACzC,CAAC;CACF;AAbD,0CAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-webpack-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "Webpack plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"is-ci": "^4.1.0",
|
|
21
21
|
"tslib": "^2.8.1",
|
|
22
22
|
"webpack": "^5.98.0",
|
|
23
|
-
"zephyr-
|
|
24
|
-
"zephyr-
|
|
23
|
+
"zephyr-xpack-internal": "0.0.51",
|
|
24
|
+
"zephyr-agent": "0.0.51"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"@types/is-ci": "3.0.4",
|