@module-federation/manifest 0.0.0-next-20240808083234 → 0.0.0-next-20240808084345
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/dist/index.cjs.js +3 -15
- package/dist/index.esm.js +3 -14
- package/package.json +4 -4
package/dist/index.cjs.js
CHANGED
|
@@ -2,18 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var path = require('path');
|
|
6
|
-
var fs = require('fs');
|
|
7
5
|
var chalk = require('chalk');
|
|
6
|
+
var path = require('path');
|
|
8
7
|
var sdk = require('@module-federation/sdk');
|
|
9
8
|
var core = require('@module-federation/dts-plugin/core');
|
|
10
9
|
var managers = require('@module-federation/managers');
|
|
11
10
|
|
|
12
11
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
13
12
|
|
|
14
|
-
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
15
|
-
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
|
|
16
13
|
var chalk__default = /*#__PURE__*/_interopDefaultLegacy(chalk);
|
|
14
|
+
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
|
|
17
15
|
|
|
18
16
|
var PLUGIN_IDENTIFIER = 'Module Federation Manifest Plugin';
|
|
19
17
|
var HOT_UPDATE_SUFFIX = '.hot-update';
|
|
@@ -659,7 +657,7 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
659
657
|
var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
660
658
|
var _this = this;
|
|
661
659
|
return _async_to_generator$2(function() {
|
|
662
|
-
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest,
|
|
660
|
+
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, manifestFileName, ret;
|
|
663
661
|
return _ts_generator$2(this, function(_state) {
|
|
664
662
|
switch(_state.label){
|
|
665
663
|
case 0:
|
|
@@ -706,16 +704,6 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
706
704
|
sum.push(remote);
|
|
707
705
|
return sum;
|
|
708
706
|
}, []);
|
|
709
|
-
prefetchInterface = false;
|
|
710
|
-
prefetchFilePath = path__default["default"].resolve(compiler.options.context || process.cwd(), "node_modules/.mf/".concat(sdk.encodeName(stats.name), "/").concat(sdk.MFPrefetchCommon.fileName));
|
|
711
|
-
existPrefetch = fs__default["default"].existsSync(prefetchFilePath);
|
|
712
|
-
if (existPrefetch) {
|
|
713
|
-
content = fs__default["default"].readFileSync(prefetchFilePath).toString();
|
|
714
|
-
if (content) {
|
|
715
|
-
prefetchInterface = true;
|
|
716
|
-
}
|
|
717
|
-
}
|
|
718
|
-
stats.metaData.prefetchInterface = prefetchInterface;
|
|
719
707
|
_this._manifest = manifest;
|
|
720
708
|
manifestFileName = _this.fileName;
|
|
721
709
|
if (!additionalData) return [
|
package/dist/index.esm.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import path from 'path';
|
|
2
|
-
import fs from 'fs';
|
|
3
1
|
import chalk from 'chalk';
|
|
4
|
-
import
|
|
2
|
+
import path from 'path';
|
|
3
|
+
import { StatsFileName, ManifestFileName, simpleJoinRemoteEntry, normalizeOptions } from '@module-federation/sdk';
|
|
5
4
|
import { isTSProject, retrieveTypesAssetsInfo } from '@module-federation/dts-plugin/core';
|
|
6
5
|
import { RemoteManager, SharedManager, ContainerManager, PKGJsonManager, utils } from '@module-federation/managers';
|
|
7
6
|
|
|
@@ -649,7 +648,7 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
649
648
|
var extraOptions = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
650
649
|
var _this = this;
|
|
651
650
|
return _async_to_generator$2(function() {
|
|
652
|
-
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest,
|
|
651
|
+
var compilation, publicPath, stats, compiler, bundler, additionalData, disableEmit, manifest, manifestFileName, ret;
|
|
653
652
|
return _ts_generator$2(this, function(_state) {
|
|
654
653
|
switch(_state.label){
|
|
655
654
|
case 0:
|
|
@@ -696,16 +695,6 @@ var ManifestManager = /*#__PURE__*/ function() {
|
|
|
696
695
|
sum.push(remote);
|
|
697
696
|
return sum;
|
|
698
697
|
}, []);
|
|
699
|
-
prefetchInterface = false;
|
|
700
|
-
prefetchFilePath = path.resolve(compiler.options.context || process.cwd(), "node_modules/.mf/".concat(encodeName(stats.name), "/").concat(MFPrefetchCommon.fileName));
|
|
701
|
-
existPrefetch = fs.existsSync(prefetchFilePath);
|
|
702
|
-
if (existPrefetch) {
|
|
703
|
-
content = fs.readFileSync(prefetchFilePath).toString();
|
|
704
|
-
if (content) {
|
|
705
|
-
prefetchInterface = true;
|
|
706
|
-
}
|
|
707
|
-
}
|
|
708
|
-
stats.metaData.prefetchInterface = prefetchInterface;
|
|
709
698
|
_this._manifest = manifest;
|
|
710
699
|
manifestFileName = _this.fileName;
|
|
711
700
|
if (!additionalData) return [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/manifest",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20240808084345",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide manifest/stats for webpack/rspack MF project .",
|
|
6
6
|
"keywords": [
|
|
@@ -24,9 +24,9 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"find-pkg": "2.0.0",
|
|
26
26
|
"chalk": "3.0.0",
|
|
27
|
-
"@module-federation/sdk": "0.0.0-next-
|
|
28
|
-
"@module-federation/dts-plugin": "0.0.0-next-
|
|
29
|
-
"@module-federation/managers": "0.0.0-next-
|
|
27
|
+
"@module-federation/sdk": "0.0.0-next-20240808084345",
|
|
28
|
+
"@module-federation/dts-plugin": "0.0.0-next-20240808084345",
|
|
29
|
+
"@module-federation/managers": "0.0.0-next-20240808084345"
|
|
30
30
|
},
|
|
31
31
|
"exports": {
|
|
32
32
|
".": {
|