diff --git a/README.md b/README.md index 3b58df8..27898f1 100644 --- a/README.md +++ b/README.md @@ -154,7 +154,7 @@ Now we can remove the duplicated options from our npm scripts ```diff "scripts": { + "start": "nodemon lib/index.js --exec babel-node", -+ "build": "babel lib -d dist", ++ "build": "babel lib -d dist -s", "serve": "node dist/index.js" } ``` diff --git a/lib/index.js b/lib/index.js index 7e92581..365b806 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,3 +1,4 @@ +import 'source-map-support/register'; import http from 'http'; http.createServer((req, res) => { diff --git a/package.json b/package.json index dd6bdbb..53e6e5a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "lib/index.js", "scripts": { "start": "nodemon lib/index.js --exec babel-node --presets es2015,stage-2", - "build": "babel lib -d dist", + "build": "babel lib -d dist -s", "serve": "node dist/index.js", "test": "mocha --compilers js:babel-register" },