Navigation Menu

Skip to content

Commit

Permalink
fix: πŸ› import less cjs instead of es6
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisermann committed Sep 25, 2019
1 parent c7ec0f4 commit bf8627f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/transformers/less.js
@@ -1,15 +1,15 @@
const less = require('less/lib/less-node');
const less = require('less')

module.exports = async ({ content, filename, options }) => {
const { css, map, imports } = await less.render(content, {
sourceMap: {},
filename,
...options,
});
})

return {
code: css,
map,
dependencies: imports,
};
};
}
}

0 comments on commit bf8627f

Please sign in to comment.