xiaofuzi / rollup-plugin-less

a less rollup plugin
22 stars 24 forks source link

Use Promises instead of async/await, refactor some of the code, and build dist using buble #14

Closed aptivator closed 7 years ago

aptivator commented 7 years ago

Today I was working on a relatively non-involved es2015 project, which I was transpiling using buble and which was erroring out with Cannot find module 'babel-runtime/regenerator. Looking at the code I noticed usage of async/await, which buble does not support. Hence, this pull request version, which uses plain Promises. After testing the version with babel and buble, everything seems to be working fine and the test suit produces the same result.