grpc-node icon indicating copy to clipboard operation
grpc-node copied to clipboard

Missing source maps in `proto-loader` npm releases

Open chm-diederichs opened this issue 3 years ago • 1 comments

Hi I'm running into a DevTools error regarding missing source maps in the proto-loader package.

DevTools expects the following source maps: build/src/index.js.map & build/src/util.js.map to be present, however .map files are not included in the release.

Would it be possible to do either of the following:

  1. Include .map files in the npm release

  2. set compilerOptions.sourceMap = false so that // # sourceMappingURLs are omitted and DevTools does not load the missing map files

Thanks!

chm-diederichs avatar Jul 21 '22 13:07 chm-diederichs

For convenience, I opened a PR for disabling source maps by default.

Let me know f you are interested or have any feedback.

chm-diederichs avatar Jul 21 '22 14:07 chm-diederichs