Open radium-v opened 4 years ago
I was hoping people would use multiple instances of transformTaggedTemplate
in their rollup config to achieve this.
// rollup.config.js
plugins: [
transformTaggedTemplate({
tagsToProcess: ['css', 'scss'],
transformer(data) {...}
}),
transformTaggedTemplate({
tagsToProcess: ['html', 'htm'],
transformer(data) {...}
})
],
But considering that we already take in an array of tags, this sounds possible too. Open to other ideas too.
For scenarios where multiple types of tags are passed with
tagsToProcess
, it would be great if thetransformer
function also passed along the tag name. This would allow for transformers to decide which strategy to use based on the tag: