Skip to content

Commit 9760b38

Browse files
committed
fix: support shebangs from cli targets
1 parent ef9c443 commit 9760b38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package/file.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class File {
3737
this.onParse(this)
3838

3939
const data = await readFile(this.url)
40-
const program = parse(data, { sourceType: 'module', ecmaVersion: 2020 })
40+
const program = parse(data, { sourceType: 'module', ecmaVersion: 2020, allowHashBang: true })
4141

4242
const imports = []
4343

0 commit comments

Comments
 (0)