Skip to content

Commit

Permalink
fix(index): add ast version (meta.ast)
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-ciniawsky committed Aug 4, 2018
1 parent 6eb82be commit 6bf774f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ module.exports = function loader (css, map, meta) {

if (!meta) meta = {}

meta.ast = { 'type': 'postcss', root: result.root }
const ast = {
type: 'postcss',
version: result.processor.version,
root: result.root
}

meta.ast = ast
meta.messages = result.messages

if (this.loaderIndex === 0) {
Expand Down

0 comments on commit 6bf774f

Please sign in to comment.