2022-01-21 08:28:41 +00:00
|
|
|
// https://github.com/less/less.js/issues/3533
|
|
|
|
console.log('Testing ES6 imports...')
|
|
|
|
|
|
|
|
import less from '..';
|
2023-08-17 09:47:40 +00:00
|
|
|
const lessRender = less.render;
|
2022-01-21 08:28:41 +00:00
|
|
|
|
|
|
|
// then I call lessRender on something
|
2023-08-17 09:47:40 +00:00
|
|
|
lessRender(`
|
2022-01-21 08:28:41 +00:00
|
|
|
body {
|
|
|
|
a: 1;
|
|
|
|
b: 2;
|
|
|
|
c: 30;
|
|
|
|
d: 4;
|
2023-08-17 09:47:40 +00:00
|
|
|
}`, {sourceMap: {}}, function(error: any, output: any) {
|
|
|
|
if (error)
|
|
|
|
console.error(error)
|
2022-01-21 08:28:41 +00:00
|
|
|
})
|