Closed timdp closed 4 years ago
Any traction on this?
@Rich-Harris This is a potential blocker for Sapper webpack -> rollup conversion which seems to impact quite a few people. Are we doing something wrong or is this a genuine issue that needs to be resolved?
I've applied this change to the module as it was being migrated to https://github.com/rollup/plugins. It's now published under @rollup/plugin-image. Please reference the CHANGELOG when updating.
Thanks for your prior work on this!
I ran into #2 and it reminded me of a similar issue I had with one of my own plugins. For whatever reason, adding an AST seems to confuse Rollup. This patch makes the plugin only return code rather than an object, because a source map is useless in this case anyway.