Skip to content

Commit 8980bd1

Browse files
committed
refactor(importFromString): add globals default
1 parent 01a1793 commit 8980bd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/import.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ interface ImprotOptions {
1111
export const importFromString = ({
1212
code,
1313
transformOptions,
14-
globals
14+
globals = {}
1515
}: ImprotOptions): any => {
1616
checkArg(code)
1717

0 commit comments

Comments
 (0)