svelte-preprocess
Advanced tools
Comparing version 2.14.1 to 2.14.3
@@ -10,2 +10,14 @@ # Changelog | ||
## [v2.14.3](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.2...v2.14.3) - 2019-07-01 | ||
### Commits | ||
- fix: 🐛 pass less @imports as dependencies to svelte [`55e9d28`](https://github.com/kaisermann/svelte-preprocess/commit/55e9d28fd03a2a1bf07c4d1b9ec3517fe2ce0cb3) | ||
## [v2.14.2](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.1...v2.14.2) - 2019-06-29 | ||
### Commits | ||
- fix: pug mixin elseif (#45) [`98ad9ca`](https://github.com/kaisermann/svelte-preprocess/commit/98ad9ca996c70da25666e4f1e9286d4dfd15fb36) | ||
## [v2.14.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.0...v2.14.1) - 2019-06-28 | ||
@@ -12,0 +24,0 @@ |
{ | ||
"name": "svelte-preprocess", | ||
"version": "2.14.1", | ||
"version": "2.14.3", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
const less = require('less/lib/less-node') | ||
module.exports = ({ content, filename, options }) => { | ||
return less | ||
.render(content, { | ||
sourceMap: {}, | ||
...options, | ||
}) | ||
.then(output => ({ | ||
code: output.css, | ||
map: output.map, | ||
})) | ||
module.exports = async ({ content, filename, options }) => { | ||
const { css, map, imports } = await less.render(content, { | ||
sourceMap: {}, | ||
filename, | ||
...options, | ||
}) | ||
return { | ||
code: css, | ||
map, | ||
dependencies: imports, | ||
} | ||
} |
@@ -15,3 +15,3 @@ const pug = require('pug') | ||
mixin elseif(condition) | ||
| {:elseif !{condition}} | ||
| {:else if !{condition}} | ||
block | ||
@@ -18,0 +18,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
45988
702