Closed cvzi closed 3 years ago
To disable the sourcemap generation if someone doesn't need it, I had used option.sourcemap i.e. a new option for this plugin.
option.sourcemap
Now I realized the output file configuration from rollup configuration can be used, no need to have a plugin option
{ input: 'in.js', output: { file: 'out.js', format: 'esm', sourcemap: true } }
It is in outputOptions.sourcemap in renderChunk(code, renderedChunk, outputOptions)
outputOptions.sourcemap
renderChunk(code, renderedChunk, outputOptions)
To disable the sourcemap generation if someone doesn't need it, I had used
option.sourcemap
i.e. a new option for this plugin.Now I realized the output file configuration from rollup configuration can be used, no need to have a plugin option
It is in
outputOptions.sourcemap
inrenderChunk(code, renderedChunk, outputOptions)