Skip to content

Make hot reload work on files containing only import statements #77

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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