Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "sourcemap"
-
Tested out parcel.js as webpack replacement and wasted 3 hours because of a missing sourcemap reference at the end of the bundled file. It was not parcels fault, but dear author of parcel-vue-plugin never again override one of parcels core file you fucker or i'll chop of your genitals with a rusty knife.2
-
Question to the frontend devs: I'm currently trying to optimize part of our JS. How do sourcemaps influence loading/rendering Speed in the Browser?
In the `webpack.config.js` we use uglify as minimizer for js. It has the option `sourceMap` Set to `true`. Now as I understand it, this caused it to Inline a sourcemap inside the JS file (which leads to a slightly bigger file size and thus longer load time for the generated file...).
My Question: should sorcemaps be enabled for prod (minified) files? Why yes, why no? Do they help the browser parse the JS faster?12 -
VSCode doesn't (seem to) have the option to target specific sourcemaps, and ParcelJS doesn't have the option to specify the names of sourcemaps.
This fucks me over pretty hard since vscodes debugger expects the sourcemap to end in .js.map, but parcel gives me just .map. If the sourcemap doesn't end with .js.map vscode will just open the debug control panel pop up thing, wait a few seconds, and then close it again.
This has given me a new permanent temporary hack :v
https://github.com/inabahare/lewd2/...2