-
Notifications
You must be signed in to change notification settings - Fork 13
Closed
Description
Is your feature request related to a problem? Please describe.
当前项目使用 yarn --pnp
安装依赖时,无法支持 rocketact-plugin-xxx
Describe the solution you'd like
调整扫描插件的实现,支持 pnp
Describe alternatives you've considered
获取可以通过你今天分享提到 pnp
的API来获取插件的实际地址来 require
packages/rocketact-scripts
resolveInstalledPlugins() {
const installedPlugins = Object.keys(this.pkg.dependencies || {})
.filter(isPlugin)
.concat(Object.keys(this.pkg.devDependencies || {}).filter(isPlugin));
installedPlugins.forEach(plugin =>
require(resolveToAppRoot(`./node_modules/${plugin}`))(new CoreAPI(this))
);
}
Metadata
Metadata
Assignees
Labels
No labels