You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As per my comment here #62 (comment), I think the separate concepts of a plugin and a transform are conflated, and pundle can benefit by making the concepts distinct.
It would make pundle easier to understand in my opinion since it'd map 1-to-1 with the concept of Extract-Tranform-Load.
Extract = require()
Transform = transforms/transformer <- new addition to replace plugin
Load = loaders
This frees up the word plugin to mean side-effects of the ETL process.
An eslint plugin to log errors
A plugin to install npm packages if they're found in the code.
Anything else someone wants to do by hooking into pundle
In my experience / in my opinion, separating impure/pure code makes it easier to maintain pundle, and it would make it easier for users to see where their problems are occurring.
How
Add a new loadTransformers() function that puts each of the transformers into an array called this.transformers or something like that. The after the line here where you emit the before-process event do something like
Why
As per my comment here #62 (comment), I think the separate concepts of a plugin and a transform are conflated, and pundle can benefit by making the concepts distinct.
require()
plugin
side-effects
of the ETL process.How
Add a new
loadTransformers()
function that puts each of the transformers into an array calledthis.transformers
or something like that. The after the line here where you emit the before-process event do something likeThoughts?
The text was updated successfully, but these errors were encountered: