Ecin
Ecin
like this? https://github.com/popomore/coffee
我想问下 >Promise 本身也是异步的,且不同实现可能会是 macrotask 或者 microtask,但一般是 microtask 的。 到底在什么情况会是 macrotask的? ``` new Promise(function (resolve) { setTimeout(resolve,0) }).then(function() { console.log('then') }); ``` 是类似这种的吗
@qingmingsang 所以我可以理解,从微观角度 promise.then是microtask 但是宏观上,那是与setTimeout处于同一个macrotask
sorry,esprima support for arrow function is not perfect I use it like this ``` const log = value => { console.log(value); } let foo = 'bar'; log(foo); ```
SAME HERE ,When I wanted to find a solution, the answer was to read the fuck document.
备注一下,rollup已经原生支持多入口多出口
@three-ago-zhou ``` // rollup.config.js (building more than one bundle) export default [{ input: 'main-a.js', output: { file: 'dist/bundle-a.js', format: 'cjs' } }, { input: 'main-b.js', output: [ { file: 'dist/bundle-b1.js',...