svelte-preprocess
Advanced tools
Comparing version 2.14.0 to 2.14.1
@@ -10,2 +10,8 @@ # Changelog | ||
## [v2.14.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.14.0...v2.14.1) - 2019-06-28 | ||
### Commits | ||
- fix: 🐛 transformer imported dependencies being overwritten [`423c17a`](https://github.com/kaisermann/svelte-preprocess/commit/423c17a23283bca40ac0d8adf192ec1037196a12) | ||
## [v2.14.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.13.1...v2.14.0) - 2019-06-22 | ||
@@ -33,3 +39,3 @@ | ||
## [v2.12.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.11.0...v2.12.0) - 2019-06-03 | ||
## [v2.12.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.7.1...v2.12.0) - 2019-06-03 | ||
@@ -39,25 +45,3 @@ ### Merged | ||
- feat: prepend scss with data property [`#36`](https://github.com/kaisermann/svelte-preprocess/pull/36) | ||
### Commits | ||
- test: 💍 add test for scss data property [`851da64`](https://github.com/kaisermann/svelte-preprocess/commit/851da64d1e06075ae31e3b222cca7c23500bd644) | ||
- Release v2.12.0 [`6c5287e`](https://github.com/kaisermann/svelte-preprocess/commit/6c5287e21da2538b202c52ff04fd7bee92f523a8) | ||
- Add note to rollup example [`bb43f07`](https://github.com/kaisermann/svelte-preprocess/commit/bb43f07b41298f5e9a2e52c038fe0b34c6120d32) | ||
## [v2.11.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.10.0...v2.11.0) - 2019-05-29 | ||
### Merged | ||
- feat: 🎸 add svelte pug mixins [`#38`](https://github.com/kaisermann/svelte-preprocess/pull/38) | ||
### Commits | ||
- test: 💍 add tests for postcss import tracking [`e19545d`](https://github.com/kaisermann/svelte-preprocess/commit/e19545d0ea9dafc8897847b365603c4b03729e45) | ||
- test: 💍 mooooar coverage [`ed62006`](https://github.com/kaisermann/svelte-preprocess/commit/ed620064dea23857dcb7b1cb9ac2111de0a577d5) | ||
- Release v2.11.0 [`157d429`](https://github.com/kaisermann/svelte-preprocess/commit/157d42932b1cd2f357cc8a1f90b1dcef3de355b3) | ||
## [v2.10.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.9.1...v2.10.0) - 2019-05-27 | ||
### Merged | ||
- feat: 🎸 add support for typescript type checking [`#37`](https://github.com/kaisermann/svelte-preprocess/pull/37) | ||
@@ -67,26 +51,5 @@ | ||
- Release v2.10.0 [`2424c9a`](https://github.com/kaisermann/svelte-preprocess/commit/2424c9afe3c1d416e48cea172ee3bacb588b53ee) | ||
## [v2.9.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.9.0...v2.9.1) - 2019-05-21 | ||
### Commits | ||
- refactor: 💡 rename rollup example to svelte-rollup [`5fe4733`](https://github.com/kaisermann/svelte-preprocess/commit/5fe47333e15bfba93989da72ba2a27c847e5aaf8) | ||
- test: 💍 add test for transforming only whats between `<template>` [`feddbfc`](https://github.com/kaisermann/svelte-preprocess/commit/feddbfce18daa826088a26bfa11efbf375ce2139) | ||
- fix: 🐛 template preprocessing running on the whole file [`e37da9d`](https://github.com/kaisermann/svelte-preprocess/commit/e37da9d5f8f5fde5077e02add17be039db729e32) | ||
## [v2.9.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.8.0...v2.9.0) - 2019-05-15 | ||
### Commits | ||
- Change changelog format [`9c14a89`](https://github.com/kaisermann/svelte-preprocess/commit/9c14a89f0ba0a500133b95780505940dff3c146f) | ||
- Release v2.9.0 [`d49ed46`](https://github.com/kaisermann/svelte-preprocess/commit/d49ed46a7d0d73aebd23704fe9dfb6ae0a264da0) | ||
## [v2.8.0](https://github.com/kaisermann/svelte-preprocess/compare/v2.7.1...v2.8.0) - 2019-05-14 | ||
### Commits | ||
- refactor: 💡 Move transformers configuration to main option obj [`9a320d9`](https://github.com/kaisermann/svelte-preprocess/commit/9a320d9c1784ceff746f5c4cd3748bfca09cac68) | ||
- chore: 🤖 use local svelte-preprocess in example [`382d876`](https://github.com/kaisermann/svelte-preprocess/commit/382d87632b0dcd498a730c40bbaeb7268107f93e) | ||
- feat: 🎸 add typescript preprocessor [`c195aa1`](https://github.com/kaisermann/svelte-preprocess/commit/c195aa183b60899603d72743432de501b23f6087) | ||
- refactor: 💡 rename rollup example to svelte-rollup [`5fe4733`](https://github.com/kaisermann/svelte-preprocess/commit/5fe47333e15bfba93989da72ba2a27c847e5aaf8) | ||
@@ -93,0 +56,0 @@ ## [v2.7.1](https://github.com/kaisermann/svelte-preprocess/compare/v2.6.5...v2.7.1) - 2019-05-08 |
{ | ||
"name": "svelte-preprocess", | ||
"version": "2.14.0", | ||
"version": "2.14.1", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -25,2 +25,5 @@ const stripIndent = require('strip-indent') | ||
const concat = (...arrs) => | ||
arrs.reduce((acc, a) => (a && a.length ? acc.concat(a) : acc), []) | ||
module.exports = ({ onBefore, aliases, preserve = [], ...rest } = {}) => { | ||
@@ -82,3 +85,3 @@ const optionsCache = {} | ||
const transformedContent = await runTransformer( | ||
const transformed = await runTransformer( | ||
lang, | ||
@@ -93,4 +96,4 @@ getTransformerOptions(lang, alias), | ||
return { | ||
...transformedContent, | ||
dependencies, | ||
...transformed, | ||
dependencies: concat(dependencies, transformed.dependencies), | ||
} | ||
@@ -162,15 +165,15 @@ } | ||
if (transformers.postcss) { | ||
const result = await runTransformer('postcss', transformers.postcss, { | ||
content: code, | ||
map, | ||
filename, | ||
}) | ||
const transformed = await runTransformer( | ||
'postcss', | ||
transformers.postcss, | ||
{ content: code, map, filename }, | ||
) | ||
code = result.code | ||
map = result.map | ||
dependencies = dependencies.concat(result.dependencies) | ||
code = transformed.code | ||
map = transformed.map | ||
dependencies = concat(dependencies, transformed.dependencies) | ||
} | ||
if (attributes.global) { | ||
const result = await runTransformer('globalStyle', null, { | ||
const transformed = await runTransformer('globalStyle', null, { | ||
content: code, | ||
@@ -181,4 +184,4 @@ map, | ||
code = result.code | ||
map = result.map | ||
code = transformed.code | ||
map = transformed.map | ||
} | ||
@@ -185,0 +188,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
701
45423