@vue/component-compiler-utils
Advanced tools
Comparing version 2.1.0 to 2.1.1
@@ -0,1 +1,11 @@ | ||
<a name="2.1.1"></a> | ||
## [2.1.1](https://github.com/vuejs/component-compiler-utils/compare/v2.1.0...v2.1.1) (2018-08-07) | ||
### Bug Fixes | ||
* remove space after selector when inserting scoped attribute ([5b299ed](https://github.com/vuejs/component-compiler-utils/commit/5b299ed)), closes [vue-loader/#1370](https://github.com/vuejs/component-compiler-utils/issues/1370) | ||
<a name="2.1.0"></a> | ||
@@ -2,0 +12,0 @@ # [2.1.0](https://github.com/vuejs/component-compiler-utils/compare/v2.0.0...v2.1.0) (2018-07-03) |
@@ -46,5 +46,8 @@ "use strict"; | ||
}); | ||
selector.insertAfter(node, selectorParser.attribute({ | ||
attribute: id | ||
})); | ||
if (node) { | ||
node.spaces.after = ''; | ||
selector.insertAfter(node, selectorParser.attribute({ | ||
attribute: id | ||
})); | ||
} | ||
}); | ||
@@ -51,0 +54,0 @@ }).processSync(node.selector); |
@@ -25,3 +25,3 @@ import { Root } from 'postcss' | ||
selectors.each((selector: any) => { | ||
let node = null | ||
let node: any = null | ||
selector.each((n: any) => { | ||
@@ -47,8 +47,11 @@ // ">>>" combinator | ||
}) | ||
selector.insertAfter( | ||
node, | ||
selectorParser.attribute({ | ||
attribute: id | ||
}) | ||
) | ||
if (node) { | ||
node.spaces.after = '' | ||
selector.insertAfter( | ||
node, | ||
selectorParser.attribute({ | ||
attribute: id | ||
}) | ||
) | ||
} | ||
}) | ||
@@ -55,0 +58,0 @@ }).processSync(node.selector) |
{ | ||
"name": "@vue/component-compiler-utils", | ||
"version": "2.1.0", | ||
"version": "2.1.1", | ||
"description": "Lower level utilities for compiling Vue single file components", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
57968
1490