Skip to content

Commit

Permalink
feat: return source map object
Browse files Browse the repository at this point in the history
  • Loading branch information
eddyerburgh committed Dec 5, 2017
1 parent 1879feb commit 92b664e
Show file tree
Hide file tree
Showing 5 changed files with 249 additions and 170 deletions.
7 changes: 1 addition & 6 deletions lib/process.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
const vueCompiler = require('vue-template-compiler')
const convertSourceMap = require('convert-source-map')
const compileTemplate = require('./template-compiler')
const generateSourceMap = require('./generate-source-map')
const addTemplateMapping = require('./add-template-mapping')
Expand Down Expand Up @@ -74,9 +73,5 @@ module.exports = function (src, path) {
}
}

if (map) {
output += '\n' + convertSourceMap.fromJSON(map.toString()).toComment()
}

return output
return { code: output, map }
}

0 comments on commit 92b664e

Please sign in to comment.