I would like to import a function from dedent-js that is defined in es5 using es6 imports. I'm using babel as transpiler and I'm running that thing under node.
After
import dedent from "dedent-js"
I try
dedent(`some
multiline
template
String`);
But I get the error
ReferenceError: dedent is not defined
What am I doing wrong?
via treeno
No comments:
Post a Comment