@hadss/hmrouter-plugin
Version:
HMRouter Compiler Plugin
17 lines (16 loc) • 700 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isHspModule = exports.isHarModule = exports.isHapModule = void 0;
const hvigor_ohos_plugin_1 = require("@ohos/hvigor-ohos-plugin");
function isHapModule(node) {
return node.getAllPluginIds().includes(hvigor_ohos_plugin_1.OhosPluginId.OHOS_HAP_PLUGIN);
}
exports.isHapModule = isHapModule;
function isHarModule(node) {
return node.getAllPluginIds().includes(hvigor_ohos_plugin_1.OhosPluginId.OHOS_HAR_PLUGIN);
}
exports.isHarModule = isHarModule;
function isHspModule(node) {
return node.getAllPluginIds().includes(hvigor_ohos_plugin_1.OhosPluginId.OHOS_HSP_PLUGIN);
}
exports.isHspModule = isHspModule;