You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
827 B

2 months ago
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getAppStyleIsolation = exports.getAppCodeSplitting = exports.getAppRenderer = void 0;
function getAppRenderer(manifestJson) {
const platformOptions = manifestJson['app-plus'];
if (platformOptions && platformOptions.renderer === 'native') {
return 'native';
}
return '';
}
exports.getAppRenderer = getAppRenderer;
function getAppCodeSplitting(manifestJson) {
if (manifestJson['app-plus']?.optimization?.codeSplitting === true) {
return true;
}
return false;
}
exports.getAppCodeSplitting = getAppCodeSplitting;
function getAppStyleIsolation(manifestJson) {
return (manifestJson['app-plus']?.optimization?.styleIsolation ?? 'apply-shared');
}
exports.getAppStyleIsolation = getAppStyleIsolation;