Skip to content

Commit

Permalink
Emit ES6 code for module source in emit file load (#2478)
Browse files Browse the repository at this point in the history
Previously the commonjs modules were being passed into webpack dependency layer, preventing tree shaking.
  • Loading branch information
kpdecker authored and arunoda committed Jul 7, 2017
1 parent ec9fc46 commit 3f50abc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/build/loaders/emit-file-loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ module.exports = function (content, sourceMap) {

const emit = (code, map) => {
this.emitFile(interpolatedName, code, map)
this.callback(null, code, map)
this.callback(null, content, sourceMap)
}

if (query.transform) {
Expand Down

0 comments on commit 3f50abc

Please sign in to comment.