Skip to content
This repository has been archived by the owner on Dec 21, 2024. It is now read-only.

v0.4.0

Compare
Choose a tag to compare
@geowarin geowarin released this 10 Mar 15:03
· 31 commits to master since this release

Improve error handling

Error messages are now simplified when they happen in nested requires.

Do not instrument when the require call is not resolved

electron-hot-loader parses the require statements at the top of your file to resolve each component file.
Sometimes, it is not possible to make the connection between a React.createElement and its require import.
This happens a lot with frameworks (like react-router or redux) that provide components that are not available in the default import.
electron-hot-loader will just ignore those components from now on, which should prevent errors from happening.
If you follow a simple package architecture, this should not happen to your components.

Commit: 11e6f28