Problem
We can't control execution order of plugins that are passed to Svelte and Sass rollup configuration objects: user defined plugins collection is always used at the end of plugins processing.
Some plugins (like rollup/plugin-replace for string replacement) must be called before standard plugins.
Suggestion
Extend options object for Svelte and Sass configuration objects to support beforePlugins plugin collection. beforePlugins collection should be handled before standard plugins
Problem We can't control execution order of plugins that are passed to
Svelte
andSass
rollup configuration objects: user defined plugins collection is always used at the end of plugins processing.Some plugins (like rollup/plugin-replace for string replacement) must be called before standard plugins.
Suggestion Extend
options
object forSvelte
andSass
configuration objects to supportbeforePlugins
plugin collection.beforePlugins
collection should be handled before standard plugins