Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

不完整的rollup plugin hooks #519

Open
HomyeeKing opened this issue Apr 6, 2023 · 1 comment
Open

不完整的rollup plugin hooks #519

HomyeeKing opened this issue Apr 6, 2023 · 1 comment
Assignees

Comments

@HomyeeKing
Copy link
Contributor

HomyeeKing commented Apr 6, 2023

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 HomyeeKing changed the title 不完整的rollup hooks 不完整的rollup plugin hooks Apr 6, 2023
@luhc228
Copy link
Member

luhc228 commented Apr 6, 2023

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

@luhc228 luhc228 self-assigned this Apr 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants