npm i -g babel-node-debug
mkdir /tmp/x
cd /tmp/x
npm init -y
npm i -D babel-cli
npm i -D babel-preset-es2015
npm i -D babel-plugin-transform-object-rest-spread
npm i -D babel-plugin-transform-es2015-destructuring
babel-node-debug app.js
Created
August 31, 2016 07:36
-
-
Save reedho/2c261c8312a4d17cf636d04f683e4042 to your computer and use it in GitHub Desktop.
Debugging node app for human
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"plugins": ["transform-es2015-destructuring", | |
"transform-object-rest-spread"], | |
"presets": ["es2015"] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as fs from 'fs'; | |
var _fs = require('fs'); | |
let p1 = {x: 0, y: 0}; | |
let p2 = {...p1, z: 0}; | |
console.log("p1", p1, "p2", p2); | |
debugger; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment