Skip to content

Commit

Permalink
fix(cli): fixed deps compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Oct 2, 2018
1 parent a16d17d commit 7f5fa28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cli/core/plugins/parser/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ exports = module.exports = function () {

// If it's not a component, and it's npm package, then add to vendors;
let assets = ctx.npm && !ctx.component ? this.vendors : this.assets;
assets.update(ctx.file, obj, 'test');
assets.update(ctx.file, obj, ctx.component ? 'component' : 'require');
obj.id = assets.get(ctx.file);
return obj;
});
Expand Down

0 comments on commit 7f5fa28

Please sign in to comment.