Closed detj closed 4 years ago
+1 I'm running in this exact issue.
@TrySound Would it be fair to use outputOptions.dir
if outputOptions.file
is undefined?
Would a PR to support specifying the file as a plugin option be accepted?
sizeSnapshot({ file: './build/my-entrypoint.js' })
+1 facing the same issue. @TrySound when can we expect this to get fixed?
Fixed in the new version
Expects
outputOptions.file
option to be set, but Rollup allows you to setoutputOptions.dir
too, in which case,outputOptions.file
will be undefined.https://github.com/TrySound/rollup-plugin-size-snapshot/blob/b86daaa0d7f0077fd02d50cdab14ddef6500b045/src/index.js#L74
Can this work without
output.file
? I suppose the file path/name has to be inferred somehow.