Replies: 1 comment
-
Choosing the one-to-many solution. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Summary
How to config native plugins in node.js
Motivation
We want that users could set up the native plugins in Node.js
Guide-level explanation
How to use native plugins
Let's see that if you want to write a exmaple that how to use native plugins in RSpack, you would write something like
builtins
option to use the native plugin.How to use js plugins
Plugin
classReference-level explanation
Let's start from the configuration user passed.
Then, we will pass the normalized plugins to rust.
After we normalize the plugins options to
Vec<Box<dyn Plugin>>
, we could just pass it to the RSpack compiler and everthing is OK.Drawbacks
Rationale and alternatives
Nope
Prior art
Nope
Unresolved questions
One to many or one to one for the javascript plugin?
Future possibilities
extendability
Nope
Beta Was this translation helpful? Give feedback.
All reactions