Closed camillef closed 2 years ago
Thanks for raising this!
It looks like now we don't even need "files" at all, since we're including pretty much all the files in the output anyway with this change. I think we should either:
dist/**/*
to be just dist
.I'll merge it with either of these changes. Thanks again.
@dlevs Thanks for the feedback - now updated with suggestion 2
Thanks! I've published that now: https://www.npmjs.com/package/duration-fns/v/3.0.1
Problem
Source maps are included in the package distribution (since
sourceMap
is set to true in the tsconfigcompilerOptions
) but the source files themselves are not. This means thesources
field in the source map files is invalid, and Webpack complains by throwing up a bunch of "Failed to parse source map from ..." errors.Fix
The
src
files are now included in the published package, which means the paths in the sourcemap files are now validSimilar fix in the mswjs library: https://github.com/mswjs/interceptors/pull/204