Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

Turn on sourcemaps flag for babel #26

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
```
Expand Down
1 change: 1 addition & 0 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import 'source-map-support/register';
import http from 'http';

http.createServer((req, res) => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down