Skip to content

Commit

Permalink
fix(loader): wrong build target
Browse files Browse the repository at this point in the history
  • Loading branch information
ydfzgyj authored Mar 12, 2018
1 parent 027f7c5 commit 66e98f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/loader.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ module.exports = function loader(content) {

if (getWebpackVersion.IS_4) {
configObj.config = loaderContext.query;
configObj.target = loaderContext.rootContext;
configObj.target = loaderContext.target;
} else {
configObj.config = getOptions(loaderContext);
configObj.target = loaderContext.options.target || loaderContext.target;
Expand Down

0 comments on commit 66e98f9

Please sign in to comment.