Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions crates/oxc_codegen/tests/integration/snapshots/minify.snap
Original file line number Diff line number Diff line change
Expand Up @@ -232,3 +232,19 @@ class C {
}
----------
class C{static static;static bar(){}}
########## 43
type T = typeof import('react');
----------
type T=typeof import("react");
########## 44
type U = typeof import("vue");
----------
type U=typeof import("vue");
########## 45
type V = typeof import('some-module').SomeType;
----------
type V=typeof import("some-module").SomeType;
########## 46
type W = typeof import('pkg').default<string>;
----------
type W=typeof import("pkg").default<string>;
20 changes: 20 additions & 0 deletions crates/oxc_codegen/tests/integration/snapshots/ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -349,3 +349,23 @@ class C {
static static;
static bar() {}
}

########## 43
type T = typeof import('react');
----------
type T = typeof import('react');

########## 44
type U = typeof import("vue");
----------
type U = typeof import('vue');

########## 45
type V = typeof import('some-module').SomeType;
----------
type V = typeof import('some-module').SomeType;

########## 46
type W = typeof import('pkg').default<string>;
----------
type W = typeof import('pkg').default<string>;
5 changes: 5 additions & 0 deletions crates/oxc_codegen/tests/integration/ts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ export import b = require("b");
static
bar() {}
}",
// TSImportType - ensure backticks are not used in minify mode
"type T = typeof import('react');",
"type U = typeof import(\"vue\");",
"type V = typeof import('some-module').SomeType;",
"type W = typeof import('pkg').default<string>;",
];

snapshot("ts", &cases);
Expand Down
Loading