xhs-mp-pack 2.0.32 → 2.0.33-beta.0

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.
@@ -26,8 +26,7 @@ declare class MPPackSetting {
26
26
  */
27
27
  appendSourcemapComment?: boolean;
28
28
  /**
29
- * 是否自适应逻辑层环境,即是否采用(function(window,...){用户代码})(undefined,...)包裹
30
- * 默认是false
29
+ * 是否开启沙箱环境 默认true
31
30
  */
32
31
  runInServiceSandbox?: boolean;
33
32
  compileType: string;
@@ -11,7 +11,7 @@ const types_1 = require("./types");
11
11
  class MPPackSetting {
12
12
  constructor(project, options) {
13
13
  this.compilePkgs = [];
14
- const { action, tsConfigPath, compressCss = true, compressJs = true, enableSourcemap = true, appendSourcemapComment = true, runInServiceSandbox = false, enableVDom = false, enableV2 = false, enableV1 = true, compilePkgs = [], compileType = '', clearDistDir = true, devWriteToDisk = false, enablePersistCache, cacheDirectory = '' } = options;
14
+ const { action, tsConfigPath, compressCss = true, compressJs = true, enableSourcemap = true, appendSourcemapComment = true, runInServiceSandbox = true, enableVDom = false, enableV2 = false, enableV1 = true, compilePkgs = [], compileType = '', clearDistDir = true, devWriteToDisk = false, enablePersistCache, cacheDirectory = '' } = options;
15
15
  this.project = project;
16
16
  this.options = options;
17
17
  this.distDir = (0, utils_1.formatPath)(options.distDir || path_1.default.join(process.cwd(), 'dist'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xhs-mp-pack",
3
- "version": "2.0.32",
3
+ "version": "2.0.33-beta.0",
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": "2.0.32",
59
- "xhs-mp-project": "2.0.32",
60
- "xhs-mp-shared-fs": "2.0.32"
58
+ "xhs-mp-compiler-utils": "2.0.33-beta.0",
59
+ "xhs-mp-project": "2.0.33-beta.0",
60
+ "xhs-mp-shared-fs": "2.0.33-beta.0"
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/babel__generator": "7.6.3",