dk00 / livescript-next

Enable latest ES features for LiveScript
https://lsn.netlify.com/
The Unlicense
39 stars 3 forks source link

How to import and destructure modules with kebab-case name #16

Closed danielo515 closed 6 years ago

danielo515 commented 6 years ago

Hello, I am trying to import a module named sanctuary-def, and I just want a couple of methods, so I want to destructure it. However it tries to create a variable named with a string and the module name.

This is what I've tried :

import sanctuary-def: { def, $} 
import \sanctuary-def: { def, $} 
danielo515 commented 6 years ago

Stupid me, the problem was the lack of space bewteen the string \sanctuary-def and the colon :