fes.js icon indicating copy to clipboard operation
fes.js copied to clipboard

[Feeback] 自动检索插件顺序问题

Open qq1037305420 opened this issue 1 year ago • 1 comments

问题描述 简明扼要的描述你的问题 插件的顺序如何保障呢?

插件A调用插件B注册的函数 dependencies: { fesjs-plugin-A:'', fesjs-plugin-B:'' }

qq1037305420 avatar Aug 09 '24 08:08 qq1037305420

您指的是运行时注册的?插件A调用插件B,建议直接在代码中写依赖,例如:

import { hasAccessSync } from '../../plugin-access/core';

if (!hasAccessSync) {
    throw new Error('[plugin-layout]: pLugin-layout depends on plugin-access,please install plugin-access first!');
}

wanchun avatar Aug 28 '24 12:08 wanchun

收到 领导!

qq1037305420 avatar Sep 06 '24 12:09 qq1037305420