import { parse } from 'acorn';
import Program from './program/Program.js';

export function transform ( source, options ) {
	var ast = parse( source, {
		ecmaVersion: 6,
		preserveParens: true
	});

	var program = new Program( source, ast );

	return program.export();
}

@@ -185,16 +185,40 @@
 ns: true
+,%0A%09%09sourceType: 'module'
 %0A%09%7D);%0A%0A%09

use sourceType: module