How can I add something into bundle in Rsbuild? just like Rollup this.emitFile
hook
#2130
-
When I write a rsbuild plugin, I want to have a hook to add something into bundle easily |
Beta Was this translation helpful? Give feedback.
Answered by
chenjiahan
Apr 18, 2024
Replies: 1 comment
-
Currently only the You can also emit files in Rspack plugins, just like the way the webpack plugin emits files. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Alkaidcc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently only the
transform
hook of Rsbuild plugin provides anemitFile
function (see: https://rsbuild.dev/plugins/dev/core#apitransform), we are considering adding a new API for Rsbuild plugin to emit files.You can also emit files in Rspack plugins, just like the way the webpack plugin emits files.