Make this output plugin
dilyanpalauzov opened this issue · comments
In Rollup a single entry can contain several outputs and each otput can have its own output plugins.
Please make possible to use rollup-plugin-babel as output plugin, so that a single rollup configuration can create both module and nomodule version (after passing different options/preset to the rollup-plugin-babel() in rollup.config.js)
Despite #333 there are warings on using output.plungis: [babel()]:
(!) The "load" hook used by the output plugin babel is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
(!) The "resolveId" hook used by the output plugin babel is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
(!) The "transform" hook used by the output plugin babel is a build time hook and will not be run for that plugin. Either this plugin cannot be used as an output plugin, or it should have an option to configure it as an output plugin.
It's possible to use this as output plugin with when using next
version. I hope to get it released as stable @rollup/plugin-babel
soon - see the migration PR here: rollup/plugins#108
The migration is complete and the version supporting this has been released as @rollup/plugin-babel@^5