This repository was archived by the owner on Oct 9, 2020. It is now read-only.

Description
This one works:
//boot.js
var main = require('./main.js')
main.boot()
//main.js
export async function boot() {
await new Promise(function(resolve, reject) {
console.log('hello world');
setTimeout(function() {
resolve();
}, 1000);
})
console.log('hello world after 1s!');
}
This one works with webpack but systemjs:
//boot.js
var main = require('./main.js')
//main.js
(async function boot() {
await new Promise(function(resolve, reject) {
console.log('hello world');
setTimeout(function() {
resolve();
}, 1000);
})
console.log('hello world after 1s!');
})()
Not sure is it an issue
Edit:
Works after adding this:
export var p = 5;
More precisely, in configuration:
meta: {
'./js/main.js': {
format: 'esm'
}
}