1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
// https://github.com/less/less.js/issues/3533 console.log('Testing ES6 imports...') import less from '..'; const lessRender = less.render; // then I call lessRender on something lessRender(` body { a: 1; b: 2; c: 30; d: 4; }`, {sourceMap: {}}, function(error: any, output: any) { if (error) console.error(error) })