xhs-mp-compiler-cli 1.8.0 → 1.9.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.
@@ -37,14 +37,14 @@
37
37
  exports.COMPILE_FULL_PKG = 'xhs-full';
38
38
  exports.COMPILE_MAIN_PKG = 'xhs-main';
39
39
  exports.COMPILE_SUB_PKG = 'xhs-sub';
40
- exports.PROD_BROWSERSLIST = ['ios_saf >= 10', 'chrome >= 83'];
40
+ exports.PROD_BROWSERSLIST = ['ios_saf >= 12', 'chrome >= 83'];
41
41
  exports.DEV_BROWSERSLIST = ['last 2 chrome version'];
42
42
  exports.DEV_TARGETS = {
43
43
  chrome: '90'
44
44
  };
45
45
  exports.PROD_TARGETS = {
46
46
  chrome: '83',
47
- ios: '10'
47
+ ios: '12'
48
48
  };
49
49
  exports.ENTRY_CSS_NAME = 'app';
50
50
  exports.FULL_PKG = 'xhs-full';
@@ -20,6 +20,7 @@
20
20
  if (project.appMode === 'miniprogram') {
21
21
  chain.module
22
22
  .rule('js')
23
+ .test(/\.js$/)
23
24
  .use('js-loader')
24
25
  .loader(require.resolve('babel-loader'))
25
26
  .options({
@@ -42,8 +43,10 @@
42
43
  ],
43
44
  plugins: [[require.resolve('@babel/plugin-transform-runtime'), { corejs: false }]]
44
45
  });
46
+ chain.module.rule('js').exclude.clear();
45
47
  chain.module
46
48
  .rule('ts')
49
+ .test(/\.ts$/)
47
50
  .use('ts-loader')
48
51
  .loader(require.resolve('babel-loader'))
49
52
  .options({
@@ -71,11 +74,11 @@
71
74
  ],
72
75
  plugins: [[require.resolve('@babel/plugin-transform-runtime'), { corejs: false }]]
73
76
  });
77
+ chain.module.rule('ts').exclude.clear();
74
78
  }
75
79
  chain.optimization.minimizer('js').use(require.resolve('terser-webpack-plugin'), [
76
80
  {
77
81
  terserOptions: {
78
- safari10: true,
79
82
  compress: { drop_console: false }
80
83
  }
81
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xhs-mp-compiler-cli",
3
- "version": "1.8.0",
3
+ "version": "1.9.0",
4
4
  "description": "xhs mp command tool.",
5
5
  "preferGlobal": true,
6
6
  "category": "esm",
@@ -94,13 +94,13 @@
94
94
  "webpack-chain": "^6.5.1",
95
95
  "webpack-sources": "^3.2.2",
96
96
  "xhs-mp-workerpool": "^9.1.3",
97
- "xhs-mp-compiler-ml-loader": "2.0.0",
98
- "xhs-mp-compiler-utils": "1.8.0",
99
- "xhs-mp-pack": "1.8.0",
100
- "xhs-mp-project": "1.8.0",
101
- "xhs-mp-utils": "1.8.0",
102
- "xhs-mp-shared-fs": "1.3.0",
103
- "xhs-mp-compiler-sjs-loader": "1.8.0",
97
+ "xhs-mp-compiler-ml-loader": "3.0.0",
98
+ "xhs-mp-compiler-utils": "1.9.0",
99
+ "xhs-mp-pack": "1.9.0",
100
+ "xhs-mp-project": "1.9.0",
101
+ "xhs-mp-utils": "1.9.0",
102
+ "xhs-mp-shared-fs": "1.4.0",
103
+ "xhs-mp-compiler-sjs-loader": "1.9.0",
104
104
  "yauzl": "^2.10.0"
105
105
  },
106
106
  "devDependencies": {