Skip to content

Commit

Permalink
fix(cli): wxsCtx.file in 'wepy-parser-wxs'
Browse files Browse the repository at this point in the history
  • Loading branch information
deepfunc committed Sep 10, 2019
1 parent a4997a7 commit df2ef5f
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 1 deletion.
245 changes: 245 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cli/core/plugins/parser/wxs.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ exports = module.exports = function () {
return Promise.resolve(wxsCtx);
} else {
wxsCtx = Object.assign({}, ctx, {
file: ctx.file,
file: node.src ? cacheKey : ctx.file,
wxs: true,
hash: fileHash
});
Expand Down

0 comments on commit df2ef5f

Please sign in to comment.