Skip to content

Commit

Permalink
fix(taroize): 给app.js添加withWeapp
Browse files Browse the repository at this point in the history
  • Loading branch information
honlyHuang committed Aug 27, 2019
1 parent 793009e commit 064ec7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/taroize/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export function parseScript (
refId,
wxses
)
if (componentType !== 'App' && classDecl.decorators!.length === 0) {
if (classDecl.decorators!.length === 0) {
classDecl.decorators = [buildDecorator(componentType)]
}
ast.program.body.push(
Expand Down

0 comments on commit 064ec7e

Please sign in to comment.