Currently, this plugin only work at transform hook so there is no way to replace the code generated in renderChunk hook. I think we can make it also run at renderChunk like @rollup/plugin-replace, or add an option to specify which hook should be used?