GoogleCloudPlatform / stackdriver-errors-js

Client-side JavaScript exception reporting library for Cloud Error Reporting
https://cloud.google.com/error-reporting/
Apache License 2.0
362 stars 54 forks source link

Read dependency sourcemaps on build #47

Closed bz2 closed 6 years ago

bz2 commented 6 years ago

No effect on the contents of the minified source, but stripping the embedded sourcemap greatly reduces the size of the plain concat file and the final sourcemap generated.

before

dist
├── [       4096]  maps
│   └── [     556070]  stackdriver-errors-concat.min.js.map
├── [     481871]  stackdriver-errors-concat.js
└── [      50790]  stackdriver-errors-concat.min.js

after

dist/
├── [       4096]  maps
│   └── [     464091]  stackdriver-errors-concat.min.js.map
├── [     192267]  stackdriver-errors-concat.js
└── [      50790]  stackdriver-errors-concat.min.js