Skip to content

Commit f34954f

Browse files
committedAug 8, 2018
fix(index): add ast version (meta.ast)
1 parent 8ac6fb5 commit f34954f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed
 

‎src/index.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,13 @@ module.exports = function loader (css, map, meta) {
163163

164164
if (!meta) meta = {}
165165

166-
meta.ast = { 'type': 'postcss', root: result.root }
166+
const ast = {
167+
type: 'postcss',
168+
version: processor.version,
169+
root
170+
}
171+
172+
meta.ast = ast
167173
meta.messages = result.messages
168174

169175
if (this.loaderIndex === 0) {

0 commit comments

Comments
 (0)
Please sign in to comment.