Skip to content

Using source map explorer

Jeff Held edited this page May 15, 2017 · 1 revision
  1. Install it
npm i -g source-map-explorer

Yarn:

yarn global add source-map-explorer
  1. Make sure you've built your project; with Codesplain, that's
npm run build

Yarn:

yarn build
  1. Go to the static js files; for Codesplain, that's
cd build/static/js
  1. Run source-map-explorer on the bundled JS file and its map, like so:
source-map-explorer main.js main.js.map
  1. Marvel at all of the unneccessary code in your bundle.

  2. Make an alias so you don't have to type out source-map-explorer (I use sme)

Clone this wiki locally