default-passive-events icon indicating copy to clipboard operation
default-passive-events copied to clipboard

Remove sourceMappingURL from dist

Open Triloworld opened this issue 4 years ago • 3 comments

Getting this error:

DevTools failed to load source map: Could not load content for https://unpkg.com/index.umd.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Cause by file in dist folder used in CDN production enviroment:

//# sourceMappingURL=index.umd.js.map

We need min.js version that can be used in production and no additional request is in file

Triloworld avatar Aug 18 '21 12:08 Triloworld

Hey!

Are you sure that this is an issue for you? AFAIK requests for source maps happen only if the user has a developer console opened - so in the end that request shouldn't happen for different people than developers (with console opened).

If it's really a problem - there is a possiblity to tweak a build process to support this case. But unfortunately I cannot make it happen in next few weeks, so any PRs would be more than welcome!

FRSgit avatar Sep 07 '21 12:09 FRSgit

Yeah. I read that isn't happen for other people. Just it adds bytes to request even if you don't use it as normal user

Triloworld avatar Oct 25 '21 09:10 Triloworld

I'd like to second the removal of the sourceMappingURL or at least an alternate version. It bloats the dev console with another warning and if we need source mapping then we can use non-CDN approaches.

RayBenefield avatar Nov 30 '21 15:11 RayBenefield