Add default export for es format.

This is a minor addition that add's a default export statement (e.g. `export default { ... };`) for the es output format.

Fixes #525
master
Futago-za Ryuu 7 years ago
parent 4cdc6d6353
commit 5cde815341

@ -1315,6 +1315,8 @@ function generateJS(ast, options) {
toplevelCode,
"",
"export " + generateParserExports() + ";",
"",
"export default " + generateParserObject() + ";",
""
);

Loading…
Cancel
Save