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
other.coffee
import Math from './math'
Hi,
In mediasmart.io we are moving to use CS2 and we would like to use
import/exportmodules (http://coffeescript.org/v2/#modules). The problem is simple, we are getting an error when we are trying to get a basic module:Could you give us light about this? Here is our super simple example:
math.coffee
other.coffee