Hacker Newsnew | past | comments | ask | show | jobs | submit | jnasc's commentslogin

What about import from? (modules)


In my opinion it's the biggest improvement from ES6. However, you still need Babel to use this feature, even in Chrome/Firefox.

For those interested:

import: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

export: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...


You can't use it in the browser yet. That's why it has been excluded. You need typescript or babel to use it


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: