Skip to content

import/export  #33

@soyjavi

Description

@soyjavi

Hi,

In mediasmart.io we are moving to use CS2 and we would like to use import/export modules (http://coffeescript.org/v2/#modules). The problem is simple, we are getting an error when we are trying to get a basic module:

You may need an appropriate loader to handle this file type.
SyntaxError: 'import' and 'export' may only appear at the top level

Could you give us light about this? Here is our super simple example:

math.coffee

export default Math

other.coffee

import Math from './math'

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions