oxc/tasks/coverage/snapshots
overlookmotel 900cb46f6c refactor(transformer): convert ModuleImports into common transform (#6186)
An alternative version of #6177.

Convert `ModuleImports` into a common transform. Works much as before, but it inserts `import` / `require` statements by passing them to `TopLevelStatements` common transform, so they get inserted in one go with any other inserted top-level statements. This avoids shuffling up the `Vec<Statement>` multiple times, which can be slow with large files.

`VarDeclarations` also inserts any declarations via `TopLevelStatements` but runs after `ModuleImports`, so can control whether a `var` statement is inserted before or after `import` statements by inserting it via `VarDeclarations` (to appear after `import` statements) or directly into `TopLevelStatements` (to appear before `import` statements). Insertion order is not actually important, but allows us to match Babel's output and pass its tests.
2024-10-01 07:40:17 +00:00
..
codegen_babel.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
codegen_misc.snap fix(semantic): ? on variable declaration type annotations is a syntax error (#5956) 2024-09-22 00:01:47 +00:00
codegen_runtime_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
codegen_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
codegen_typescript.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
minifier_babel.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
minifier_test262.snap refactor(minifier): move dce conditional expression to RemoveDeadCode (#5971) 2024-09-23 10:22:00 +00:00
parser_babel.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
parser_misc.snap feat(semantic): add help message for invalid let x?: number (#5969) 2024-09-22 15:59:49 +00:00
parser_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
parser_typescript.snap feat(semantic): check for type annotations on left side of for..in and for..of iterators (#6043) 2024-09-25 02:51:17 +00:00
prettier_babel.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
prettier_misc.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
prettier_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
prettier_typescript.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
semantic_babel.snap fix(semantic): do not create a global symbol for declare global {} (#6040) 2024-09-25 08:46:00 +00:00
semantic_misc.snap fix(semantic): ? on variable declaration type annotations is a syntax error (#5956) 2024-09-22 00:01:47 +00:00
semantic_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
semantic_typescript.snap refactor(transformer): convert ModuleImports into common transform (#6186) 2024-10-01 07:40:17 +00:00
transformer_babel.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
transformer_misc.snap fix(semantic): ? on variable declaration type annotations is a syntax error (#5956) 2024-09-22 00:01:47 +00:00
transformer_test262.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
transformer_typescript.snap test(conformance): move conformance snapshots into separate directory (#5924) 2024-09-20 12:30:39 +00:00
transpile.snap feat(isolated-declarations): handle export in the namespace correctly (#5950) 2024-09-21 16:39:58 +00:00