xhs-mp-pack 1.7.0 → 1.7.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.
Files changed (2) hide show
  1. package/dist/MPPack.js +4 -3
  2. package/package.json +4 -4
package/dist/MPPack.js CHANGED
@@ -20,6 +20,7 @@ const nodeConsole_1 = __importDefault(require("@/base/logging/nodeConsole"));
20
20
  const NodeWatchFileSystem_1 = __importDefault(require("@/base/NodeWatchFileSystem"));
21
21
  const types_1 = require("./types");
22
22
  const normalization_1 = require("./base/normalization");
23
+ const setupWriteToDisk_1 = __importDefault(require("./setupWriteToDisk"));
23
24
  const watchOptions = {
24
25
  aggregateTimeout: 300,
25
26
  poll: false,
@@ -54,9 +55,9 @@ class MPPack extends AbstractMPPack {
54
55
  const SharedFs = require('xhs-mp-shared-fs');
55
56
  const sharedFs = new SharedFs();
56
57
  compiler.outputFileSystem = sharedFs;
57
- // if (this.packSetting.devWriteToDisk) {
58
- // setupWriteToDisk(compiler, this.packSetting)
59
- // }
58
+ if (this.packSetting.devWriteToDisk) {
59
+ (0, setupWriteToDisk_1.default)(compiler, this.packSetting);
60
+ }
60
61
  }
61
62
  else {
62
63
  compiler.outputFileSystem = graceful_fs_1.default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xhs-mp-pack",
3
- "version": "1.7.0",
3
+ "version": "1.7.1",
4
4
  "description": "xhs mp compiler core.",
5
5
  "preferGlobal": true,
6
6
  "category": "esm",
@@ -55,9 +55,9 @@
55
55
  "watchpack": "^2.4.0",
56
56
  "webpack-chain": "^6.5.1",
57
57
  "webpack-sources": "^3.2.3",
58
- "xhs-mp-compiler-utils": "1.7.0",
59
- "xhs-mp-project": "1.7.0",
60
- "xhs-mp-shared-fs": "1.2.0"
58
+ "xhs-mp-compiler-utils": "1.7.1",
59
+ "xhs-mp-project": "1.7.1",
60
+ "xhs-mp-shared-fs": "1.2.1"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/babel__generator": "7.6.3",