rspack-manifest-plugin 5.0.0-beta.0 → 5.0.0-beta.1
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 +4 -3
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -31,6 +31,7 @@ Change list:
|
|
|
31
31
|
- Rename package to `rspack-manifest-plugin`
|
|
32
32
|
- Import type from `@rspack/core`
|
|
33
33
|
- Add `@rspack/core` to peer dependencies and remove `webpack`
|
|
34
|
+
- Add `RspackManifestPlugin` export
|
|
34
35
|
|
|
35
36
|
## Requirements
|
|
36
37
|
|
|
@@ -61,7 +62,7 @@ npm install rspack-manifest-plugin --save-dev
|
|
|
61
62
|
Create a `rspack.config.js` file:
|
|
62
63
|
|
|
63
64
|
```js
|
|
64
|
-
const {
|
|
65
|
+
const { RspackManifestPlugin } = require('rspack-manifest-plugin');
|
|
65
66
|
const options = { ... };
|
|
66
67
|
|
|
67
68
|
module.exports = {
|
|
@@ -69,7 +70,7 @@ module.exports = {
|
|
|
69
70
|
entry: [ 'app.js' ],
|
|
70
71
|
...
|
|
71
72
|
plugins: [
|
|
72
|
-
new
|
|
73
|
+
new RspackManifestPlugin(options)
|
|
73
74
|
]
|
|
74
75
|
};
|
|
75
76
|
```
|
|
@@ -164,7 +165,7 @@ The default value for this option is a regular expression targeting Webpack's [d
|
|
|
164
165
|
Type: `Object`<br>
|
|
165
166
|
Default: `{}`
|
|
166
167
|
|
|
167
|
-
A cache of key/value pairs used to seed the manifest. This may include a set of [custom key/value](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json) pairs to include in your manifest, or may be used to combine manifests across compilations in [multi-compiler mode](https://github.com/webpack/webpack/tree/master/examples/multi-compiler). To combine manifests, pass a shared seed object to each compiler's `
|
|
168
|
+
A cache of key/value pairs used to seed the manifest. This may include a set of [custom key/value](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json) pairs to include in your manifest, or may be used to combine manifests across compilations in [multi-compiler mode](https://github.com/webpack/webpack/tree/master/examples/multi-compiler). To combine manifests, pass a shared seed object to each compiler's `RspackManifestPlugin` instance.
|
|
168
169
|
|
|
169
170
|
### `serialize`
|
|
170
171
|
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.WebpackManifestPlugin = exports.getCompilerHooks = void 0;
|
|
3
|
+
exports.RspackManifestPlugin = exports.WebpackManifestPlugin = exports.getCompilerHooks = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
5
|
const hooks_1 = require("./hooks");
|
|
6
6
|
Object.defineProperty(exports, "getCompilerHooks", { enumerable: true, get: function () { return hooks_1.getCompilerHooks; } });
|
|
@@ -59,4 +59,5 @@ class WebpackManifestPlugin {
|
|
|
59
59
|
}
|
|
60
60
|
}
|
|
61
61
|
exports.WebpackManifestPlugin = WebpackManifestPlugin;
|
|
62
|
+
exports.RspackManifestPlugin = WebpackManifestPlugin;
|
|
62
63
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAAyC;AAMzC,mCAAoE;AA2G3D,iGA3GyB,wBAAgB,OA2GzB;AAzGzB,MAAM,YAAY,GAAiB,IAAI,GAAG,EAAE,CAAC;AA6B7C,MAAM,QAAQ,GAAG;IACf,cAAc,EAAE,QAAQ;IACxB,QAAQ,EAAE,EAAE;IACZ,QAAQ,EAAE,eAAe;IACzB,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,KAAK,CAAC;IAChB,GAAG,EAAE,IAAI;IACT,UAAU,EAAE,IAAI;IAChB,aAAa,EAAE,wBAAwB;IAE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