Skip to content

Conversation

@trygveaa
Copy link
Contributor

If a file only has import statements, the parser would crash when hot
module reloading was enabled because firstNonImportDeclarationNode would
be undefined. This makes those files work by adding the hot module block
at the end of the file in those cases.

If a file only has import statements, the parser would crash when hot
module reloading was enabled because firstNonImportDeclarationNode would
be undefined. This makes those files work by adding the hot module block
at the end of the file in those cases.
@gajus gajus merged commit 3bf3b84 into gajus:master Apr 19, 2017
@gajus
Copy link
Owner

gajus commented Apr 19, 2017

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants