Skip to content

Commit

Permalink
fix(app): add APP to preprocess context
Browse files Browse the repository at this point in the history
  • Loading branch information
fxy060608 committed Aug 16, 2022
1 parent 7b62b0f commit 3aa3912
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/uni-cli-shared/lib/preprocess.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ module.exports = function initPreprocess (name, platforms, userDefines = {}) {
}

if (name.startsWith('app-')) {
vueContext.APP = true
vueContext.APP = true
nvueContext.APP = true
}

if (name === 'quickapp-webview') {
Expand Down

0 comments on commit 3aa3912

Please sign in to comment.