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 8, 2018
1 parent 8ac6fb5 commit f34954f
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 @@ -163,7 +163,13 @@ module.exports = function loader (css, map, meta) {

if (!meta) meta = {}

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

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

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

0 comments on commit f34954f

Please sign in to comment.