Skip to content

[Feature Request]: 添加一个 pluginHookMiddleware 类似的钩子,用于 在所有插件钩子调用前后注入逻辑,就像 Webpack Tapable 的 wrapper #2172

@Roxannej

Description

@Roxannej

What problem does this feature solve?

我想用Farm写一个rust的插件,模仿speed-measure-webpack-plugin写一个farm构建的时候项目里的插件的构建时间的插件, 但是发现用rust还写不了, 因为没办法包裹所有的插件,没有类似webapck一样的wrapper方法

然后我换了一种方法, 那我写一个js的插件吧,但是又发现@farmfe/plugin-react 获取不到,就是说Farm 无法通过 JS 插件捕获,只能测 JS 插件吗?

What does the proposed API look like?

类似webapck一样的wrapper方法, 让我能去实现一个计算plugins运行时间的插件, 如果不可以也请告诉我一下, 我换个方向的插件写吧

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions