Commit 3f50abcb authored by Kevin Decker's avatar Kevin Decker Committed by Arunoda Susiripala

Emit ES6 code for module source in emit file load (#2478)

Previously the commonjs modules were being passed into webpack dependency layer, preventing tree shaking.
parent ec9fc464
...@@ -12,7 +12,7 @@ module.exports = function (content, sourceMap) { ...@@ -12,7 +12,7 @@ module.exports = function (content, sourceMap) {
const emit = (code, map) => { const emit = (code, map) => {
this.emitFile(interpolatedName, code, map) this.emitFile(interpolatedName, code, map)
this.callback(null, code, map) this.callback(null, content, sourceMap)
} }
if (query.transform) { if (query.transform) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment