Skip to content

Commit 3564938

Browse files
committed
chore: ts-ignore
1 parent 5adc529 commit 3564938

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

packages/taro-cli/src/create/page.ts

+2
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ export default class Page extends Creator {
218218
modifyState = state
219219
}
220220

221+
// @ts-ignore
221222
traverse(ast, {
222223
ExportDefaultDeclaration (path) {
223224
modifyPagesOrSubPackages({
@@ -235,6 +236,7 @@ export default class Page extends Creator {
235236
break
236237
case ConfigModificationState.Success:
237238
{
239+
// @ts-ignore
238240
const newCode = generate(ast, { retainLines: true })
239241
fs.writeFileSync(appConfigPath, newCode.code)
240242
console.log(`${chalk.green('✔ ')}${chalk.grey(`新页面信息已在 ${appConfigPath} 文件中自动补全`)}`)

packages/taro-helper/src/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -605,6 +605,7 @@ function readSFCPageConfig(configPath: string) {
605605
const configSource = matches[0]
606606
const ast = babel.parse(configSource, { filename: '' }) as babel.ParseResult
607607

608+
// @ts-ignore
608609
babel.traverse(ast.program, { CallExpression: callExprHandler })
609610
}
610611

0 commit comments

Comments
 (0)