icepkg icon indicating copy to clipboard operation
icepkg copied to clipboard

不完整的rollup plugin hooks

Open HomyeeKing opened this issue 2 years ago • 1 comments

Do you want to request a feature or report a bug? bug What is the current behavior? image

当前pluginContainer 只暴露的有限的hooks 而且通过手动调用显然是不合理的,会导致很多rollup插件不能用

What is the expected behavior?

不应该对rollup插件的hooks进行阉割,而且更不推荐手动调用hooks 应该让rollup自行托管
icepkg如果有什么定制 应该也通过插件形式来处理

HomyeeKing avatar Apr 06 '23 09:04 HomyeeKing

当前 Transform 模式和 Bundle 模式的构建流程确实存在不统一,并且也不对齐。理论上要在下个大版本中,Transform 模式直接使用 Rollup(开启 output.preserveModules) 进行编译,不会继续使用 pluginContainer

luhc228 avatar Apr 06 '23 09:04 luhc228