提交 04806327 编写于 作者: fxy060608's avatar fxy060608

chore: 部分编译增加 __X__ 标识

上级 89d43827
......@@ -25,6 +25,7 @@
"freeze": false
},
"replacements": {
"__X__": "false",
"__PLATFORM__": "'app'",
"__APP_VIEW__": "false",
"__VUE_OPTIONS_API__": "true",
......
......@@ -2398,8 +2398,8 @@ function initLaunchOptions({ path, query, referrerInfo, }) {
query: query ? parseQuery(query) : {},
referrerInfo: referrerInfo || {},
// TODO uni-app x
channel: __X__ ? undefined : plus.runtime.channel,
launcher: __X__ ? undefined : plus.runtime.launcher,
channel: plus.runtime.channel,
launcher: plus.runtime.launcher,
});
extend(enterOptions, launchOptions);
return extend({}, launchOptions);
......@@ -17985,7 +17985,7 @@ const createInteractiveAd = defineSyncApi(API_CREATE_INTERACTIVE_AD, (options) =
return new InteractiveAd(options);
}, CreateInteractiveAdProtocol, CreateInteractiveAdOptions);
const downgrade = !__X__ && plus.os.name === 'Android' && parseInt(plus.os.version) < 6;
const downgrade = plus.os.name === 'Android' && parseInt(plus.os.version) < 6;
const ANI_SHOW = downgrade ? 'slide-in-right' : 'pop-in';
const ANI_DURATION = 300;
const ANI_CLOSE = downgrade ? 'slide-out-right' : 'pop-out';
......@@ -18238,7 +18238,7 @@ const WEBVIEW_STYLE_BLACKLIST = [
'backgroundColor',
];
let id = __X__ ? 1 : 2;
let id = 2;
function getWebviewId() {
return id;
}
......@@ -19109,7 +19109,7 @@ function setupPage(component) {
return component;
}
function initScope(pageId, vm, pageInstance) {
if (!__X__) {
{
const $getAppWebview = () => {
return plus.webview.getWebviewById(pageId + '');
};
......
......@@ -7,6 +7,7 @@
"freeze": false
},
"replacements": {
"__X__": "false",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "true",
"process.env.NODE_ENV": "\"development\""
......@@ -22,6 +23,7 @@
"freeze": false
},
"replacements": {
"__X__": "false",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"production\""
......@@ -34,6 +36,7 @@
"src/view/index.ts": ["dist/view.runtime.esm.js"]
},
"replacements": {
"__X__": "false",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false"
},
......@@ -47,6 +50,7 @@
"freeze": false
},
"replacements": {
"__X__": "false",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"development\""
......@@ -62,6 +66,7 @@
"freeze": false
},
"replacements": {
"__X__": "false",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"production\""
......@@ -77,6 +82,7 @@
"freeze": false
},
"replacements": {
"__X__": "true",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"development\""
......@@ -92,6 +98,7 @@
"freeze": false
},
"replacements": {
"__X__": "true",
"__VUE_OPTIONS_API__": "true",
"__VUE_PROD_DEVTOOLS__": "false",
"process.env.NODE_ENV": "\"production\""
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册