前端 uni-app 重写: 9页面 H5

This commit is contained in:
zhiqui
2026-11-15 15:09:37 +08:00
parent 513b53672e
commit ea7c2529e9
24104 changed files with 3667749 additions and 0 deletions
@@ -0,0 +1,3 @@
import type { Root, Rule } from 'postcss';
export declare function createBackgroundRule(origRule: Rule, selector: string): void;
export declare function adaptAlipayPageBackground(root: Root): void;
@@ -0,0 +1,125 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.adaptAlipayPageBackground = exports.createBackgroundRule = void 0;
const postcss_selector_parser_1 = __importDefault(require("postcss-selector-parser"));
const constants_1 = require("./constants");
const ALIPAY_PAGE_BACKGROUND_SELECTOR = ':root';
function isCssVarDeclaration(decl) {
return decl.prop.startsWith('--');
}
function isDeclaration(node) {
return node.type === 'decl';
}
function hasCssVarDeclaration(nodes) {
return nodes.some((node) => {
if (!isDeclaration(node)) {
return false;
}
return isCssVarDeclaration(node);
});
}
function hasBackgroundDeclaration(nodes) {
return nodes.some((node) => {
if (!isDeclaration(node)) {
return false;
}
return constants_1.BG_PROPS.includes(node.prop);
});
}
function isPageSelector(selector) {
if (selector.nodes.some((node) => node.type === 'combinator')) {
return false;
}
const first = selector.nodes[0];
return !!first && first.type === 'tag' && first.value === 'page';
}
function getPageSelectorInfo(rule) {
try {
const selectorRoot = (0, postcss_selector_parser_1.default)().astSync(rule.selector);
const pageSelector = selectorRoot.nodes
.filter(isPageSelector)
.map((selector) => selector.toString())
.join(', ');
if (!pageSelector) {
return;
}
const nonPageSelector = selectorRoot.nodes
.filter((selector) => !isPageSelector(selector))
.map((selector) => selector.toString())
.join(', ');
return {
pageSelector,
nonPageSelector,
};
}
catch {
return;
}
}
function isRemovableRule(rule) {
const nodes = rule.nodes;
// The rule can be removed when it has no child nodes, or only comments left
// (comments do not need to be kept)
return (!nodes || !nodes.length || nodes.every((node) => node.type === 'comment'));
}
function createBackgroundRule(origRule, selector) {
const bgDecls = [];
const nodes = origRule.nodes ? [...origRule.nodes] : [];
if (!hasCssVarDeclaration(nodes) && !hasBackgroundDeclaration(nodes)) {
return;
}
for (const node of nodes) {
if (node.type !== 'decl') {
continue;
}
if (isCssVarDeclaration(node)) {
bgDecls.push(node.clone());
node.remove();
continue;
}
if (constants_1.BG_PROPS.includes(node.prop)) {
bgDecls.push(node.clone());
node.remove();
}
}
if (!bgDecls.length) {
return;
}
const { rule } = require('postcss');
const backgroundRule = rule({ selector }).append(bgDecls);
backgroundRule.raws.before = origRule.raws.before || '\n';
origRule.after(backgroundRule);
if (isRemovableRule(origRule)) {
origRule.remove();
}
}
exports.createBackgroundRule = createBackgroundRule;
function adaptAlipayPageBackground(root) {
if (process.env.UNI_PLATFORM !== 'mp-alipay' ||
process.env.UNI_APP_X !== 'true') {
return;
}
root.walkRules((rule) => {
const pageSelectorInfo = getPageSelectorInfo(rule);
if (!pageSelectorInfo) {
return;
}
const nodes = rule.nodes ? [...rule.nodes] : [];
if (!hasCssVarDeclaration(nodes) && !hasBackgroundDeclaration(nodes)) {
return;
}
if (pageSelectorInfo.nonPageSelector) {
const pageRule = rule.clone({ selector: pageSelectorInfo.pageSelector });
pageRule.raws.before = rule.raws.before || '\n';
rule.selector = pageSelectorInfo.nonPageSelector;
rule.after(pageRule);
createBackgroundRule(pageRule, ALIPAY_PAGE_BACKGROUND_SELECTOR);
return;
}
createBackgroundRule(rule, ALIPAY_PAGE_BACKGROUND_SELECTOR);
});
}
exports.adaptAlipayPageBackground = adaptAlipayPageBackground;
@@ -0,0 +1 @@
export declare const BG_PROPS: string[];
@@ -0,0 +1,14 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BG_PROPS = void 0;
exports.BG_PROPS = [
'background',
'background-clip',
'background-color',
'background-image',
'background-origin',
'background-position',
'background-repeat',
'background-size',
'background-attachment',
];
@@ -0,0 +1,16 @@
import type { PluginCreator } from 'postcss';
/**
* 基于页面 externalClasses 使用情况提升页面样式优先级
*
* 小程序平台(mp-*):
* - 页面没有使用 externalClasses:不做转换
* - 页面存在动态 externalClasses:选择器最后一个 class 追加 [class]
* .a -> .a[class]
* - 页面只有静态 externalClasses:仅命中静态 class 的选择器追加 [class]
* .foo -> .foo[class](foo 在 staticClasses 中)
* .bar -> .bar(bar 不在 staticClasses 中)
*
* 追加 [class] 可以提升 class 选择器优先级,同时避免原先插入 page 带来的结构影响。
*/
declare const externalPlugin: PluginCreator<void>;
export default externalPlugin;
@@ -0,0 +1,181 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const postcss_selector_parser_1 = __importDefault(require("postcss-selector-parser"));
const pages_1 = require("../../json/pages");
const externalClasses_1 = require("../../mp/externalClasses");
const utils_1 = require("../../utils");
/**
* 基于页面 externalClasses 使用情况提升页面样式优先级
*
* 小程序平台(mp-*):
* - 页面没有使用 externalClasses:不做转换
* - 页面存在动态 externalClasses:选择器最后一个 class 追加 [class]
* .a -> .a[class]
* - 页面只有静态 externalClasses:仅命中静态 class 的选择器追加 [class]
* .foo -> .foo[class](foo 在 staticClasses 中)
* .bar -> .bar(bar 不在 staticClasses 中)
*
* 追加 [class] 可以提升 class 选择器优先级,同时避免原先插入 page 带来的结构影响。
*/
const externalPlugin = () => {
return {
postcssPlugin: 'uni-external',
prepare() {
const processedRules = new WeakSet();
return {
OnceExit(root) {
// 只有小程序平台需要处理 externalClasses 的样式优先级
const platform = process.env.UNI_PLATFORM || '';
if (!platform.startsWith('mp-')) {
return;
}
// 支付宝 ACSS 不支持 [class],隔离 2.0 使用来源前缀完成样式命中控制。
if ((0, externalClasses_1.isAlipayXStyleIsolation)()) {
processAlipayStyleIsolation(root);
return;
}
// 从 postcss source 中获取当前样式所属文件
const filePath = root.source?.input?.file;
if (!filePath) {
return;
}
// 只处理页面文件,组件文件保持原样
if (!(0, pages_1.isUniPageFile)(filePath)) {
return;
}
// 获取页面中收集到的 externalClasses 使用信息
const externalClassesInfo = (0, externalClasses_1.findPageExternalClasses)(filePath);
let staticClasses = new Set();
let hasDynamic = false;
if (process.env.NODE_ENV === 'development') {
hasDynamic = true;
}
else if (externalClassesInfo) {
staticClasses = externalClassesInfo.staticClasses;
if (externalClassesInfo.hasDynamic ||
externalClassesInfo.hasAppAndPageStyle) {
hasDynamic = true;
}
}
// 没有静态 class,也没有动态绑定时,直接跳过,避免无意义遍历
if (staticClasses.size === 0 && !hasDynamic) {
return;
}
root.walkRules((rule) => {
processRule(rule, processedRules, staticClasses, hasDynamic);
});
},
};
},
};
};
/**
* 单 class 选择器按 App、页面、组件来源改写为不同前缀;页面额外补 page 提权,
* 从而在同名 class 下保持“页面 > 组件 > App”。复杂选择器继续遵循支付宝原生行为。
*/
function processAlipayStyleIsolation(root) {
const filePath = root.source?.input?.file;
if (!filePath) {
return;
}
const prefix = (0, utils_1.isAppVue)(filePath)
? '-a-'
: (0, pages_1.isUniPageFile)(filePath)
? '-p-'
: '-c-';
const isPage = prefix === '-p-';
root.walkRules((rule) => {
if (rule.parent?.type === 'atrule' &&
/-?keyframes$/.test(rule.parent.name)) {
return;
}
rule.selector = (0, postcss_selector_parser_1.default)((selectorRoot) => {
selectorRoot.each((selector) => {
// 所有静态 CSS class 都要校验,防止用户 class 与内部隔离键冲突。
selector.walkClasses((classNode) => {
if ((0, externalClasses_1.isAlipayStyleIsolationClass)(classNode.value)) {
throw rule.error(`支付宝小程序样式隔离不允许 class 使用保留前缀:${classNode.value}`);
}
});
if (selector.nodes.length === 0 ||
selector.nodes[0].type !== 'class' ||
selector.nodes.slice(1).some((node) => node.type !== 'pseudo')) {
return;
}
selector.nodes[0].value = prefix + selector.nodes[0].value;
if (isPage) {
selector.prepend(postcss_selector_parser_1.default.combinator({ value: ' ' }));
selector.prepend(postcss_selector_parser_1.default.tag({ value: 'page' }));
}
});
}).processSync(rule.selector);
});
}
function processRule(rule, processedRules, staticClasses, hasDynamic) {
// 同一个 Rule 只处理一次,避免被重复追加 [class]
if (processedRules.has(rule)) {
return;
}
// keyframes 内部的 from/to 不是普通选择器,不能处理
if (rule.parent &&
rule.parent.type === 'atrule' &&
/-?keyframes$/.test(rule.parent.name)) {
return;
}
processedRules.add(rule);
// 根据 externalClasses 情况处理选择器
rule.selector = (0, postcss_selector_parser_1.default)((selectorRoot) => {
selectorRoot.each((selector) => {
let classNode;
if (hasDynamic) {
// 动态绑定无法提前知道具体 class,所有包含 class 的选择器都提升优先级
classNode = findLastClassNode(selector);
}
else {
// 静态绑定只处理命中 staticClasses 的选择器,减少无关 CSS 变更
classNode = findLastClassNode(selector, staticClasses);
}
if (classNode) {
appendClassAttribute(selector, classNode);
}
});
}).processSync(rule.selector);
}
/**
* 找到选择器最右侧的 class 节点。
* 传入 classes 时,仅在选择器包含目标 class 后才返回最右侧 class,
* 这样 .a .b 在命中 .a 时也能输出 .a .b[class],符合整体提权预期。
*/
function findLastClassNode(selector, classes) {
let lastClassNode;
for (let i = selector.nodes.length - 1; i >= 0; i--) {
const node = selector.nodes[i];
if (node.type !== 'class') {
continue;
}
if (!lastClassNode) {
lastClassNode = node;
}
if (!classes || classes.has(node.value)) {
return lastClassNode;
}
}
}
/**
* 在 class 后追加 [class] 提升优先级。
* .a -> .a[class]
* .a[class] -> .a[class][class]
* .a .b -> .a .b[class]
*/
function appendClassAttribute(selector, classNode) {
selector.insertAfter(classNode, postcss_selector_parser_1.default.attribute({
attribute: 'class',
value: undefined,
raws: {},
}));
}
externalPlugin.postcss = true;
exports.default = externalPlugin;
@@ -0,0 +1,3 @@
import type { PluginCreator } from 'postcss';
declare const scopedPlugin: PluginCreator<string>;
export default scopedPlugin;
@@ -0,0 +1,206 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const postcss_selector_parser_1 = __importDefault(require("postcss-selector-parser"));
const uni_shared_1 = require("@dcloudio/uni-shared");
const scopedPlugin = () => {
return {
postcssPlugin: 'uni-sfc-scoped',
prepare({ processor: { plugins } }) {
const hasVueSfcScoped = !!plugins.find((plugin) => plugin.postcssPlugin === 'vue-sfc-scoped');
return {
Rule(rule) {
processRule(rule, hasVueSfcScoped);
},
};
},
};
};
const processedRules = new WeakSet();
function processRule(rule, hasVueSfcScoped) {
if (processedRules.has(rule) ||
(rule.parent &&
rule.parent.type === 'atrule' &&
/-?keyframes$/.test(rule.parent.name))) {
return;
}
processedRules.add(rule);
const isXWeb = process.env.UNI_APP_X === 'true' && process.env.UNI_UTS_PLATFORM === 'web';
rule.selector = (0, postcss_selector_parser_1.default)((selectorRoot) => {
selectorRoot.each((selector) => {
hasVueSfcScoped
? rewriteDeprecatedSelector(selector)
: rewriteSelector(selector, selectorRoot);
if (isXWeb) {
rewritePartSelector(selector, selectorRoot);
}
});
}).processSync(rule.selector);
}
function rewritePartSelector(selector, selectorRoot) {
if (selector.some((n) => {
return n.type === 'pseudo' && n.value === '::part';
})) {
const uniPartSelector = selector.clone();
_rewritePartSelector(uniPartSelector, selectorRoot);
selectorRoot.insertAfter(selector, uniPartSelector);
}
}
function _rewritePartSelector(selector, selectorRoot) {
selector.each((n) => {
if (n.type === 'pseudo' && n.value === '::part') {
const partClass = (0, uni_shared_1.getPartClass)(n.nodes[0].toString());
selector.insertAfter(n, postcss_selector_parser_1.default.pseudo({
value: ':deep',
nodes: [
postcss_selector_parser_1.default.className({
value: partClass,
}),
],
}));
selector.removeChild(n);
}
});
}
/**
* @param selector
* @returns
*/
function rewriteDeprecatedSelector(selector) {
const nodes = [];
let deepNode;
selector.each((n) => {
if (deepNode) {
nodes.push(n);
selector.removeChild(n);
}
else {
const { type, value } = n;
if (type === 'pseudo' && value === '::v-deep') {
deepNode = n;
}
else if (type === 'combinator' &&
(value === '>>>' || value === '/deep/')) {
deepNode = n;
}
}
});
if (!deepNode) {
return;
}
if (deepNode.type === 'combinator') {
const index = selector.index(deepNode);
if (index > 0) {
selector.insertBefore(deepNode, postcss_selector_parser_1.default.combinator({ value: ' ' }));
}
}
// remove first combinator
// ::v-deep a{color:red;} => :deep(a){color:red;}
const firstNode = nodes[0];
if (firstNode && firstNode.type === 'combinator' && firstNode.value === ' ') {
nodes.shift();
}
selector.insertBefore(deepNode, postcss_selector_parser_1.default.pseudo({
value: ':deep',
nodes: [postcss_selector_parser_1.default.selector({ value: '', nodes })],
}));
selector.removeChild(deepNode);
}
function rewriteSelector(selector, selectorRoot) {
let node = null;
// find the last child node to insert attribute selector
selector.each((n) => {
// DEPRECATED ">>>" and "/deep/" combinator
if (n.type === 'combinator' &&
(n.value === '>>>' || n.value === '/deep/')) {
n.value = ' ';
n.spaces.before = n.spaces.after = '';
// warn(
// `the >>> and /deep/ combinators have been deprecated. ` +
// `Use :deep() instead.`
// )
return false;
}
if (n.type === 'pseudo') {
const { value } = n;
// deep: inject [id] attribute at the node before the ::v-deep
// combinator.
if (value === ':deep' || value === '::v-deep') {
if (n.nodes.length) {
// .foo ::v-deep(.bar) -> .foo[xxxxxxx] .bar
// replace the current node with ::v-deep's inner selector
let last = n;
n.nodes[0].each((ss) => {
selector.insertAfter(last, ss);
last = ss;
});
// insert a space combinator before if it doesn't already have one
const prev = selector.at(selector.index(n) - 1);
if (!prev || !isSpaceCombinator(prev)) {
selector.insertAfter(n, postcss_selector_parser_1.default.combinator({
value: ' ',
}));
}
selector.removeChild(n);
}
else {
// DEPRECATED usage
// .foo ::v-deep .bar -> .foo[xxxxxxx] .bar
// warn(
// `::v-deep usage as a combinator has ` +
// `been deprecated. Use :deep(<inner-selector>) instead.`
// )
const prev = selector.at(selector.index(n) - 1);
if (prev && isSpaceCombinator(prev)) {
selector.removeChild(prev);
}
selector.removeChild(n);
}
return false;
}
// slot: use selector inside `::v-slotted` and inject [id + '-s']
// instead.
// ::v-slotted(.foo) -> .foo[xxxxxxx-s]
if (value === ':slotted' || value === '::v-slotted') {
rewriteSelector(n.nodes[0], selectorRoot);
let last = n;
n.nodes[0].each((ss) => {
selector.insertAfter(last, ss);
last = ss;
});
// selector.insertAfter(n, n.nodes[0])
selector.removeChild(n);
// since slotted attribute already scopes the selector there's no
// need for the non-slot attribute.
return false;
}
// global: replace with inner selector and do not inject [id].
// ::v-global(.foo) -> .foo
if (value === ':global' || value === '::v-global') {
selectorRoot.insertAfter(selector, n.nodes[0]);
selectorRoot.removeChild(selector);
return false;
}
}
if (n.type !== 'pseudo' && n.type !== 'combinator') {
node = n;
}
});
if (node) {
;
node.spaces.after = '';
}
else {
// For deep selectors & standalone pseudo selectors,
// the attribute selectors are prepended rather than appended.
// So all leading spaces must be eliminated to avoid problems.
selector.first.spaces.before = '';
}
}
function isSpaceCombinator(node) {
return node.type === 'combinator' && /^\s+$/.test(node.value);
}
scopedPlugin.postcss = true;
exports.default = scopedPlugin;
@@ -0,0 +1,12 @@
import type { Plugin, Root } from 'postcss';
export interface UniAppCssProcessorOptions {
unit?: string;
unitRatio?: number;
unitPrecision?: number;
}
export declare function filterPrefersColorScheme(root: Root, force?: boolean): void;
declare const uniapp: {
(opts?: UniAppCssProcessorOptions): Plugin;
postcss: boolean;
};
export default uniapp;
@@ -0,0 +1,169 @@
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.filterPrefersColorScheme = void 0;
const shared_1 = require("@vue/shared");
const postcss_selector_parser_1 = __importDefault(require("postcss-selector-parser"));
const uni_shared_1 = require("@dcloudio/uni-shared");
const constants_1 = require("./constants");
const alipayPageBackground_1 = require("./alipayPageBackground");
const x_1 = require("../../x");
const defaultUniAppCssProcessorOptions = (0, shared_1.extend)({}, uni_shared_1.defaultRpx2Unit);
function transform(selector, state, { rewriteTag, vapor }) {
if (selector.type !== 'tag') {
return;
}
const { value } = selector;
if (vapor && value !== 'page') {
rewriteVaporTag(selector);
return;
}
selector.value = rewriteTag(value);
if (value === 'page' && selector.value === 'uni-page-body') {
state.body = true;
}
}
function createBodyRule(origRule) {
const bodyDecls = [];
origRule.walkDecls((decl) => {
if (constants_1.BG_PROPS.indexOf(decl.prop) !== -1) {
bodyDecls.push(decl.clone());
}
// css变量也要提升到body
if (decl.prop.startsWith('--')) {
bodyDecls.push(decl.clone());
}
});
if (bodyDecls.length) {
const { rule } = require('postcss');
origRule.after(rule({ selector: 'body' }).append(bodyDecls));
}
}
function rewriteVaporTag(selector) {
// 显式命名空间属于原生 CSS,不将 svg|image 等当成 uni 组件。
if (selector.namespace !== undefined)
return;
let tag = selector.value.replace(/^v-uni-/, '');
if (tag === 'cover-view')
tag = 'view';
if (tag === 'cover-image')
tag = 'image';
if (!(0, uni_shared_1.isBuiltInComponent)(tag) && !(0, uni_shared_1.isDom2WebVueComponentTag)(tag))
return;
let host = 'div';
if (tag === 'text')
host = 'span';
else if (tag === 'image')
host = 'img';
else if (tag === 'canvas')
host = 'canvas';
// Button、Navigator 会使用 View 或 Text 根,切换分支后仍须匹配。
else if (tag === 'button' || tag === 'navigator')
host = ':is(div,span)';
// 框架样式及本插件产物可能再次经过此处。统一识别紧邻的纯属性
// :where,已有身份时只转换宿主;不推导分支、后代或否定选择器。
const marker = `uni-${tag}`;
const next = selector.next();
const hasMarker = next?.type === 'pseudo' &&
next.value === ':where' &&
next.nodes.length === 1 &&
next.nodes[0].nodes.every((node) => node.type === 'attribute') &&
next.nodes[0].nodes.some((node) => node.type === 'attribute' &&
node.attribute === marker &&
node.namespace === undefined &&
!node.operator);
// 用 div:where([uni-view]) 而不是 [uni-view]:保留原标签的 (0,0,1)
// 优先级,避免属性选择器的 (0,1,0) 改变与 class、scoped 样式的覆盖关系。
// :is(div,span) 同样只有标签权重;已有标识直接参与匹配,不排除复合组件根。
const nodes = (0, postcss_selector_parser_1.default)().astSync(host + (hasMarker ? '' : `:where([${marker}])`)).first.nodes;
nodes[0].spaces.before = selector.spaces.before;
nodes[nodes.length - 1].spaces.after = selector.spaces.after;
selector.replaceWith(...nodes);
}
function walkRules(options) {
return (rule) => {
const state = { body: false };
rule.selector = (0, postcss_selector_parser_1.default)((selectors) => selectors.walk((selector) => transform(selector, state, options))).processSync(rule.selector);
state.body && createBodyRule(rule);
};
}
function walkDecls(rpx2unit) {
return (decl) => {
const { value } = decl;
if (value.indexOf('rpx') === -1 && value.indexOf('upx') === -1) {
return;
}
decl.value = rpx2unit(decl.value);
};
}
function filterPrefersColorScheme(root, force = false) {
if (process.env.VUE_APP_DARK_MODE !== 'true') {
const filePath = root.source?.input.file;
if (force || (filePath && filePath.includes('@dcloudio'))) {
root.walkAtRules((rule) => {
if (/prefers-color-scheme\s*:\s*dark/.test(rule.params)) {
rule.remove();
}
});
}
}
}
exports.filterPrefersColorScheme = filterPrefersColorScheme;
const baiduTags = {
navigator: 'nav',
};
function rewriteBaiduTags(tag) {
return baiduTags[tag] || tag;
}
function rewriteUniH5Tags(tag) {
if (tag === 'page') {
return 'uni-page-body';
}
if ((0, uni_shared_1.isBuiltInComponent)(tag)) {
return uni_shared_1.COMPONENT_SELECTOR_PREFIX + tag;
}
return tag;
}
function rewriteUniAppTags(tag) {
if (tag === 'page') {
return 'body';
}
if ((0, uni_shared_1.isBuiltInComponent)(tag)) {
return uni_shared_1.COMPONENT_SELECTOR_PREFIX + tag;
}
return tag;
}
const transforms = {
h5: rewriteUniH5Tags,
app: rewriteUniAppTags,
'app-harmony': rewriteUniAppTags,
'mp-baidu': rewriteBaiduTags,
};
const uniapp = (opts) => {
const platform = process.env.UNI_PLATFORM;
const { unit, unitRatio, unitPrecision } = (0, shared_1.extend)({}, defaultUniAppCssProcessorOptions, opts);
const rpx2unit = (0, uni_shared_1.createRpx2Unit)(unit, unitRatio, unitPrecision);
return {
postcssPlugin: 'uni-app',
prepare() {
return {
OnceExit(root) {
root.walkDecls(walkDecls(rpx2unit));
const rewriteTag = transforms[platform];
filterPrefersColorScheme(root);
(0, alipayPageBackground_1.adaptAlipayPageBackground)(root);
if (rewriteTag) {
root.walkRules(walkRules({
rewriteTag,
vapor: (0, x_1.isUniAppXWebVapor)(),
}));
}
},
};
},
};
};
uniapp.postcss = true;
exports.default = uniapp;