added .mjs extension to JavaScript (#3783)

* added .mjs extension to JavaScript

* add missing newline at end of file

* add example from https://github.com/bmeck/composable-ast-walker/blob/master/example/constant_fold.mjs
This commit is contained in:
Bradley Meck
2017-09-07 03:56:36 -05:00
committed by Colin Seymour
parent 6b06e47c67
commit 38bc5fd336
4 changed files with 967 additions and 0 deletions

View File

@@ -0,0 +1,5 @@
import {foo} from './entry.mjs';
console.log(foo());
const bar = "I am bar.";
export {bar as default};