Skip to content

Commit

Permalink
Fix sourcemap generation
Browse files Browse the repository at this point in the history
So, there is a bug in the parcel-bundler. I was generating the
sourcemap with a wrong path, but in reality it should've been
relative to the client code. I.e. my bundle in `/public/client.js`
but inside that file the last string is a link to the source maps
and it was `/client.js.map`, and of course Firefox was unable to
find that file.

parcel-bundler/parcel#1028
  • Loading branch information
aalekseev committed Oct 27, 2019
1 parent c3c5299 commit df7d4f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"private": true,
"scripts": {
"dev:client": "parcel watch src/client.js --out-dir public",
"live:client": "parcel build src/client.js --out-dir public",
"dev:client": "parcel watch src/client.js --out-dir public --public-url .",
"live:client": "parcel build src/client.js --out-dir public --public-url .",
"lint": "prettier --check \"src/**/*.js\"",
"fix": "prettier --write \"src/**/*.js\"",
"start": "npm run dev:client & nodemon --watch src src/server.js"
Expand Down

0 comments on commit df7d4f1

Please sign in to comment.