xhs-mp-compiler-cli 2.0.15 → 2.0.16

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.
@@ -68,8 +68,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
68
68
  const { env } = packSetting;
69
69
  const assetsChain = new xhs_mp_pack_1.Config();
70
70
  const serviceChain = new xhs_mp_pack_1.Config();
71
- const assetsPresets = [assets_2.presetAssets, common_1.default];
72
- const servicePresets = [service_2.presetService, common_1.default, babel_1.default];
71
+ const assetsPresets = [common_1.default, assets_2.presetAssets];
72
+ const servicePresets = [common_1.default, service_2.presetService, babel_1.default];
73
73
  if (env === xhs_mp_pack_1.ENV.production) {
74
74
  assetsPresets.push(prod_1.default);
75
75
  servicePresets.push(prod_1.default);
package/dist/sharedFs.js CHANGED
@@ -9,11 +9,11 @@
9
9
  })(function (require, exports) {
10
10
  "use strict";
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- const SharedFs = require('xhs-mp-shared-fs');
13
12
  let sharedFs;
14
13
  function getFS(isThread) {
15
14
  if (isThread) {
16
15
  if (!sharedFs) {
16
+ const SharedFs = require('xhs-mp-shared-fs');
17
17
  sharedFs = new SharedFs();
18
18
  }
19
19
  return sharedFs;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xhs-mp-compiler-cli",
3
- "version": "2.0.15",
3
+ "version": "2.0.16",
4
4
  "description": "xhs mp command tool.",
5
5
  "preferGlobal": true,
6
6
  "category": "esm",
@@ -88,18 +88,18 @@
88
88
  "webpack-chain": "^6.5.1",
89
89
  "webpack-sources": "^3.2.2",
90
90
  "xhs-mp-workerpool": "^9.2.0",
91
- "xhs-mp-ml-loader": "2.0.15",
92
- "xhs-mp-compiler-utils": "2.0.15",
93
- "xhs-mp-pack": "2.0.15",
94
- "xhs-mp-project": "2.0.15",
95
- "xhs-mp-shared": "2.0.15",
96
- "xhs-mp-shared-fs": "2.0.15",
97
- "xhs-mp-sjs-loader": "2.0.15",
98
- "xhs-mp-sketch-loader": "2.0.15",
91
+ "xhs-mp-ml-loader": "2.0.16",
92
+ "xhs-mp-compiler-utils": "2.0.16",
93
+ "xhs-mp-pack": "2.0.16",
94
+ "xhs-mp-project": "2.0.16",
95
+ "xhs-mp-shared": "2.0.16",
96
+ "xhs-mp-shared-fs": "2.0.16",
97
+ "xhs-mp-sjs-loader": "2.0.16",
98
+ "xhs-mp-sketch-loader": "2.0.16",
99
99
  "yauzl": "^2.10.0"
100
100
  },
101
101
  "peerDependencies": {
102
- "xhs-mp-ml-parser": "2.0.15"
102
+ "xhs-mp-ml-parser": "2.0.16"
103
103
  },
104
104
  "devDependencies": {
105
105
  "@types/babel__generator": "7.6.3",
@@ -123,7 +123,7 @@
123
123
  "typescript": "5.1.6",
124
124
  "vue3-jest": "27.0.0-alpha.2",
125
125
  "webpack-dev-server": "4.0.0-beta.3",
126
- "xhs-mp-ml-parser": "2.0.15"
126
+ "xhs-mp-ml-parser": "2.0.16"
127
127
  },
128
128
  "scripts": {
129
129
  "version": "formula changelog && git add .",