Skip to content

Instantly share code, notes, and snippets.

@vojtajina
Last active December 29, 2015 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vojtajina/7668603 to your computer and use it in GitHub Desktop.
Save vojtajina/7668603 to your computer and use it in GitHub Desktop.
export class Greeter {
}
import {Greeter} from './code.js';
var g = new Greeter();
./traceur --out transpiled.js code.js
# This fails:
# code.js:1:1: unexpected token export
# code.js:1:8: Semi-colon expected
# undefined
./traceur --out transpiled.js main.js
# This works fine, but transpiles everything into a single file.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment