Skip to content

Commit

Permalink
Revert "fix(isolated_declarations): Always emit module declarations (#…
Browse files Browse the repository at this point in the history
…4911)" (#4916)

This reverts commit 0fb0b71.

test failed  https://github.com/oxc-project/oxc/actions/runs/10405198969/job/28815418191

We should only emit for
```ts
declare module "xx" {}
declare global {}
```

Do not emit for
```ts
module x {}
declare module x {}
```

@MichaelMitchell-at cc
  • Loading branch information
Dunqing committed Aug 15, 2024
1 parent 0fb0b71 commit 46fb3cb
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 20 deletions.
3 changes: 0 additions & 3 deletions crates/oxc_isolated_declarations/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -314,9 +314,6 @@ impl<'a> IsolatedDeclarations<'a> {
new_ast_stmts.push(Statement::ImportDeclaration(decl));
}
}
Statement::TSModuleDeclaration(decl) => {
new_ast_stmts.push(Statement::TSModuleDeclaration(decl));
}
_ => {}
}
}
Expand Down

This file was deleted.

This file was deleted.

0 comments on commit 46fb3cb

Please sign in to comment.