Skip to content

Commit dda21c3

Browse files
committed
Added additional support to wrapping the default export specifier
1 parent 0457826 commit dda21c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/vite/utils/inject-client.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ describe("transform", () => {
160160
expect(removeWhitespace(result.code)).toStrictEqual(expected)
161161
})
162162

163-
it("should wrap the default export properly even if it's declared as a variable and then exported via export { name as default }", () => {
163+
it("should wrap the default export properly even if it's declared as a variable and then exported via export { name as default } and has other exports as well", () => {
164164
const result = injectRdtClient(
165165
`
166166
import { test } from "./file/path";

0 commit comments

Comments
 (0)