zephyr-rspack-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
|
@@ -10,6 +10,16 @@
|
|
|
10
10
|
|
|
11
11
|
An Rspack plugin for deploying applications with Zephyr Cloud. This plugin integrates seamlessly with Rspack's fast bundling to enable deployment of your applications with Module Federation support. Read more from our documentation [here](https://docs.zephyr-cloud.io/recipes/react-rspack-nx).
|
|
12
12
|
|
|
13
|
+
## Get Started
|
|
14
|
+
|
|
15
|
+
The fastest way to get started is to use to use `create-zephyr-apps` to generate a new Webpack application with Zephyr integration and choose from various rspack example:
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npx create-zephyr-apps@latest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
For more information please refer to our [documentation](https://docs.zephyr-cloud.io/recipes).
|
|
22
|
+
|
|
13
23
|
## Installation
|
|
14
24
|
|
|
15
25
|
```bash
|
|
@@ -20,7 +30,7 @@ npm install --save-dev zephyr-rspack-plugin
|
|
|
20
30
|
yarn add --dev zephyr-rspack-plugin
|
|
21
31
|
|
|
22
32
|
# pnpm
|
|
23
|
-
pnpm add --dev zephyr-rspack-plugin
|
|
33
|
+
pnpm add --save-dev zephyr-rspack-plugin
|
|
24
34
|
|
|
25
35
|
# bun
|
|
26
36
|
bun add --dev zephyr-rspack-plugin
|
|
@@ -104,34 +114,6 @@ export default withZephyr({
|
|
|
104
114
|
})(config);
|
|
105
115
|
```
|
|
106
116
|
|
|
107
|
-
## Configuration Options
|
|
108
|
-
|
|
109
|
-
The `withZephyr` function accepts configuration options:
|
|
110
|
-
|
|
111
|
-
```javascript
|
|
112
|
-
withZephyr({
|
|
113
|
-
// Enable/disable deployment
|
|
114
|
-
deploy: true,
|
|
115
|
-
|
|
116
|
-
// Deployment environment
|
|
117
|
-
environment: 'production',
|
|
118
|
-
|
|
119
|
-
// Module Federation configuration (if not using @nx/rspack)
|
|
120
|
-
moduleFederation: {
|
|
121
|
-
name: 'my-app',
|
|
122
|
-
remotes: {},
|
|
123
|
-
exposes: {},
|
|
124
|
-
shared: {},
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
// Additional metadata
|
|
128
|
-
metadata: {
|
|
129
|
-
version: '1.0.0',
|
|
130
|
-
description: 'My Rspack app',
|
|
131
|
-
},
|
|
132
|
-
});
|
|
133
|
-
```
|
|
134
|
-
|
|
135
117
|
## Features
|
|
136
118
|
|
|
137
119
|
- 🚀 Fast builds with Rspack's Rust-based bundler
|
package/dist/package.json
CHANGED
|
@@ -9,6 +9,7 @@ class ZeRspackPlugin {
|
|
|
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-rspack-plugin.js","sourceRoot":"","sources":["../../src/rspack-plugin/ze-rspack-plugin.ts"],"names":[],"mappings":";;;AAGA,
|
|
1
|
+
{"version":3,"file":"ze-rspack-plugin.js","sourceRoot":"","sources":["../../src/rspack-plugin/ze-rspack-plugin.ts"],"names":[],"mappings":";;;AAGA,iEAI+B;AAG/B,MAAM,UAAU,GAAG,gBAAgB,CAAC;AAapC,MAAa,cAAc;IAGzB,YAAY,OAA8D;QACxE,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,wCAaC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zephyr-rspack-plugin",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.51",
|
|
4
4
|
"description": "Repack plugin for Zephyr",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@rspack/core": "1.2.8",
|
|
21
21
|
"is-ci": "^4.1.0",
|
|
22
22
|
"tslib": "^2.8.1",
|
|
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",
|