@umijs/mfsu 4.0.0-canary.20220615.2 → 4.0.0-canary.20220620.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/dist/depInfo.js CHANGED
@@ -27,7 +27,7 @@ class DepInfo {
27
27
  }
28
28
  loadCache() {
29
29
  if ((0, fs_1.existsSync)(this.cacheFilePath)) {
30
- utils_1.logger.info('MFSU restore cache');
30
+ utils_1.logger.info('[MFSU] restore cache');
31
31
  const { cacheDependency, moduleGraph } = JSON.parse((0, fs_1.readFileSync)(this.cacheFilePath, 'utf-8'));
32
32
  this.cacheDependency = cacheDependency;
33
33
  this.moduleGraph.restore(moduleGraph);
@@ -43,7 +43,7 @@ class DepInfo {
43
43
  (0, fs_1.readFileSync)(this.cacheFilePath, 'utf-8') === newContent) {
44
44
  return;
45
45
  }
46
- utils_1.logger.info('MFSU write cache');
46
+ utils_1.logger.info('[MFSU] write cache');
47
47
  (0, fs_1.writeFileSync)(this.cacheFilePath, newContent, 'utf-8');
48
48
  }
49
49
  }
package/dist/mfsu.js CHANGED
@@ -198,7 +198,7 @@ promise new Promise(resolve => {
198
198
  async buildDeps() {
199
199
  const shouldBuild = this.depInfo.shouldBuild();
200
200
  if (!shouldBuild) {
201
- utils_1.logger.info('MFSU skip buildDeps');
201
+ utils_1.logger.info('[MFSU] skip buildDeps');
202
202
  return;
203
203
  }
204
204
  this.depInfo.snapshot();
@@ -207,7 +207,7 @@ promise new Promise(resolve => {
207
207
  cwd: this.opts.cwd,
208
208
  mfsu: this,
209
209
  });
210
- utils_1.logger.info(`MFSU buildDeps since ${shouldBuild}`);
210
+ utils_1.logger.info(`[MFSU] buildDeps since ${shouldBuild}`);
211
211
  utils_1.logger.debug(deps.map((dep) => dep.file).join(', '));
212
212
  await this.depBuilder.build({
213
213
  deps,
@@ -215,7 +215,7 @@ promise new Promise(resolve => {
215
215
  // Write cache
216
216
  this.depInfo.writeCache();
217
217
  if (this.buildDepsAgain) {
218
- utils_1.logger.info('MFSU buildDepsAgain');
218
+ utils_1.logger.info('[MFSU] buildDepsAgain');
219
219
  this.buildDepsAgain = false;
220
220
  this.buildDeps().catch((e) => {
221
221
  utils_1.logger.error(e);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umijs/mfsu",
3
- "version": "4.0.0-canary.20220615.2",
3
+ "version": "4.0.0-canary.20220620.1",
4
4
  "description": "@umijs/mfsu",
5
5
  "homepage": "https://github.com/umijs/umi-next/tree/master/packages/mfsu#readme",
6
6
  "bugs": "https://github.com/umijs/umi-next/issues",
@@ -22,9 +22,9 @@
22
22
  "test": "umi-scripts jest-turbo"
23
23
  },
24
24
  "dependencies": {
25
- "@umijs/bundler-esbuild": "4.0.0-canary.20220615.2",
26
- "@umijs/bundler-utils": "4.0.0-canary.20220615.2",
27
- "@umijs/utils": "4.0.0-canary.20220615.2",
25
+ "@umijs/bundler-esbuild": "4.0.0-canary.20220620.1",
26
+ "@umijs/bundler-utils": "4.0.0-canary.20220620.1",
27
+ "@umijs/utils": "4.0.0-canary.20220620.1",
28
28
  "enhanced-resolve": "5.9.3"
29
29
  },
30
30
  "devDependencies": {