Skip to content

How can I add something into bundle in Rsbuild? just like Rollup this.emitFile hook #2130

Answered by chenjiahan
Alkaidcc asked this question in Q&A
Discussion options

You must be logged in to vote

Currently only the transform hook of Rsbuild plugin provides an emitFile 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Alkaidcc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants