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
Perhaps there's an alternative way of dealing with this kind of scenario, but for those who are interested in keeping their dependency graph updated, wouldn't it be a good idea to allow snowpack.config.js to also receive an array of functions as value for the plugins property, like so:
This way the dependency graph would clear indicate those as:
instead of:
Additionally, this could be beneficial for those interested in quickly mocking a plugin behaviour or having small plugins which only make sense to the project without having to create a package for it and declare everything inline.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Perhaps there's an alternative way of dealing with this kind of scenario, but for those who are interested in keeping their dependency graph updated, wouldn't it be a good idea to allow
snowpack.config.js
to also receive an array of functions as value for theplugins
property, like so:This way the dependency graph would clear indicate those as:
instead of:
Additionally, this could be beneficial for those interested in quickly mocking a plugin behaviour or having small plugins which only make sense to the project without having to create a package for it and declare everything inline.
Beta Was this translation helpful? Give feedback.
All reactions