Skip to content
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

Hot boundary Webpack loader #1339

Open
5 tasks
theKashey opened this issue Sep 11, 2019 · 0 comments
Open
5 tasks

Hot boundary Webpack loader #1339

theKashey opened this issue Sep 11, 2019 · 0 comments

Comments

@theKashey
Copy link
Collaborator

based on facebook/react#16604 (comment)

create a webpack plugin which will inject hot code to the included files, for example components/**/index.js.

  • - hooks should be reset only inside enclosed boundary (read generation from a context`)
  • - (prevent false positives) only files with all exports matching react component patterns.
    • - Throw error in case of wrong exports in an included location.
    • - Enable dry run - check which exports would be rendered as react components.
  • - (lazy interface) only for files with a single default export
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

No branches or pull requests

1 participant