@dcloudio/uni-cli-shared 3.0.0-alpha-3060720221018003 → 3.0.0-alpha-3060720221018005

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.
@@ -3,10 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.initCheckSystemWebview = void 0;
4
4
  function initCheckSystemWebview(manifestJson) {
5
5
  // 检查Android系统webview版本 || 下载X5后启动
6
- let plusWebview = manifestJson.plus.webView;
7
- if (plusWebview) {
8
- manifestJson.plus['uni-app'].webView = plusWebview;
6
+ let plusWebView = manifestJson.plus.webView;
7
+ if (plusWebView) {
8
+ manifestJson.plus['uni-app'].webView = plusWebView;
9
9
  delete manifestJson.plus.webView;
10
10
  }
11
+ if (process.env.NODE_ENV === 'development' && !plusWebView) {
12
+ manifestJson.plus['uni-app'].webView = {
13
+ minUserAgentVersion: '49.0',
14
+ };
15
+ }
11
16
  }
12
17
  exports.initCheckSystemWebview = initCheckSystemWebview;
@@ -4,6 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.isJsFile = exports.cleanUrl = exports.hashRE = exports.queryRE = exports.isInternalRequest = exports.ENV_PUBLIC_PATH = exports.CLIENT_PUBLIC_PATH = exports.VALID_ID_PREFIX = exports.FS_PREFIX = exports.isImportRequest = exports.parseVueRequest = void 0;
7
+ const shared_1 = require("@vue/shared");
7
8
  const path_1 = __importDefault(require("path"));
8
9
  const constants_1 = require("../../constants");
9
10
  function parseVueRequest(id) {
@@ -59,7 +60,8 @@ function isJsFile(id) {
59
60
  if (isJs) {
60
61
  return true;
61
62
  }
62
- const isVueJs = constants_1.EXTNAME_VUE.includes(path_1.default.extname(filename)) && (!query.vue || query.setup);
63
+ const isVueJs = constants_1.EXTNAME_VUE.includes(path_1.default.extname(filename)) &&
64
+ (!query.vue || query.setup || (0, shared_1.hasOwn)(query, 'lang.ts'));
63
65
  if (isVueJs) {
64
66
  return true;
65
67
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dcloudio/uni-cli-shared",
3
- "version": "3.0.0-alpha-3060720221018003",
3
+ "version": "3.0.0-alpha-3060720221018005",
4
4
  "description": "@dcloudio/uni-cli-shared",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -25,8 +25,8 @@
25
25
  "@babel/core": "^7.18.13",
26
26
  "@babel/parser": "^7.18.13",
27
27
  "@babel/types": "^7.17.0",
28
- "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018003",
29
- "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018003",
28
+ "@dcloudio/uni-i18n": "3.0.0-alpha-3060720221018005",
29
+ "@dcloudio/uni-shared": "3.0.0-alpha-3060720221018005",
30
30
  "@intlify/core-base": "9.1.9",
31
31
  "@intlify/shared": "9.1.9",
32
32
  "@intlify/vue-devtools": "9.1.9",
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "gitHead": "33e807d66e1fe47e2ee08ad9c59247e37b8884da",
66
66
  "devDependencies": {
67
- "@dcloudio/uni-uts-v1": "3.0.0-alpha-3060720221018003",
67
+ "@dcloudio/uni-uts-v1": "3.0.0-alpha-3060720221018005",
68
68
  "@types/babel__core": "^7.1.19",
69
69
  "@types/debug": "^4.1.7",
70
70
  "@types/estree": "^0.0.51",