-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix ASI bug in react-hot-loader transform (#384)
The specific pattern `export default function() {}` was transformed in such a way that the parenthesized block afterword looked like a function invocation. To avoid this, we can start the snippet with a semicolon.
- Loading branch information
1 parent
4f42a22
commit 69d9178
Showing
2 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters