test-es6.ts 336 B

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