-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
// foo.js
export default function foo () {
console.log('foo')
}
// bar.js
export { default as foo } from './foo'
// baz.js
import { foo } from './bar'
foo()
Works as expected. However...
# foo.coffee
export default foo = ->
console.log 'foo'
# bar.coffee
export { default as foo } from './foo'
# baz.coffee
import { foo } from './bar'
do foo
Throws: Error transforming bar.coffee: unexpected identifier
This might be related to #4451
The workaround is simply put the backticks around. Or...
import foo from './foo' # Too much work but doable :)
export { foo }
Why do I use CoffeeScript instead of TypeScript and encourage my friends to do so?
Because with CoffeeScript we get the money, quickly. Instead of thinking the unnecessaries and being overwhelmed by code organization and stuffs and being poor software engineers.
Thank you for listening.
Metadata
Metadata
Assignees
Labels
No labels