test-es6.ts 346 B

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