-
-
Notifications
You must be signed in to change notification settings - Fork 158
support node 7.6 #166
Comments
@graingert Good point! We could add it right after merge. |
I just wanted to add.. that I hope this automatically excludes |
@hzoo does this include #166 (comment)? |
@hulkish Yes. Debug output:
No |
I'm not sure I'm using this correctly. However, I keep getting the regenerator error:
index.js: require('babel-register')
require('./sandpit') sandpit.js import axios from 'axios'
async function printNorris(category) {
const norris = await axios.get(`https://api.chucknorris.io/jokes/random?category=${category}`)
console.log(norris.data.value)
}
printNorris('dev') .babelrc: {
"presets": ["env"]
}
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee() {
^
ReferenceError: regeneratorRuntime is not defined
at D:\git\XXX\sandpit.js:4:32
at Object.<anonymous> (D:\git\XXX\sandpit.js:29:2)
at Module._compile (module.js:571:32)
at loader (D:\git\XXX\node_modules\babel-register\lib\node.js:144:5)
at Object.require.extensions.(anonymous function) [as .js] (D:\git\XXX\node_modules\babel-register\lib\node.js:154:7)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19) I thought this should work just fine now, without babel having to transform the async/await constructs. No? |
@batjko Check the examples in the readme, your .babelrc should look something like:
If you don't include |
Ha! It does the trick, @noinkling. Thanks for your quick response! |
If you don't pass any options it acts the same as preset-latest which compiles everything. You have to tell the preset what you support or it doesn't know what to not compile, make sense? |
Yup, makes now. |
depends on compat-table/compat-table#1033
The text was updated successfully, but these errors were encountered: