Closed mindplay-dk closed 3 years ago
Hello @mindplay-dk,
I believe this has been fixed by @tjenkinson in his Pull Request, but it has not been released yet. I did not have a lot on time to work on this plugin lately, so the progress is a bit slow, but this will be included in the next release.
Looks like yes.
If you want to publish a pre-release, I'd be happy to test. 🙂
Should be fixed for a while, closing
I have the plugin configured like this:
(Note that I'm using a custom callback with
inject
here to bypass the built-in code generation - I just want the CSS as a string, I have my own code for injecting it.)Now the input:
Correctly gets converted to:
And so far so good.
But then after your plugin, I have the Babel plugin, which is configured to convert
const
intovar
.Somehow that doesn't work?
Other
const
in my code get converted tovar
- but the resultingconst
from this plugin does not.Changing the order of plugins doesn't seem to change anything.
Is there any way to configure the plugin itself to emit
var
instead ofconst
?(Doesn't the plugin order in rollup define the order of processing? or what am I not understanding here?)