[ES6] Implemented parse for export Name from Module variants. (#1701)

- add `AST_Export` new variants output
- add tests to `test/compress/`
- update `$propdoc` of `AST_Export` ("exported_names" & "module_name")
- add tests for `export ...  as ...` variants
This commit is contained in:
Ondřej Španěl
2017-03-30 11:07:50 +02:00
committed by Alex Lam S.L
parent fccefbeaca
commit 5dea52266b
6 changed files with 182 additions and 2 deletions

View File

@@ -199,6 +199,15 @@ export_statement: {
expect_exact: "export default 1;export var foo=4;export let foo=6;export const foo=6;export function foo(){};export class foo{};"
}
export_module_statement: {
input: {
export * from "a.js";
export {A} from "a.js";
export {A, B} from "a.js";
}
expect_exact: 'export*from"a.js";export{A}from"a.js";export{A,B}from"a.js";'
}
import_statement_mangling: {
mangle = { toplevel: true };
input: {