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

Lazy load for native class binding #156

Open
gfx opened this issue May 5, 2013 · 1 comment
Open

Lazy load for native class binding #156

gfx opened this issue May 5, 2013 · 1 comment

Comments

@gfx
Copy link
Member

gfx commented May 5, 2013

Lazy loading for native class binding is necessary to use native(...) in the JSX compiler itself. That is, the web compiler try to require node modules but it always fails.

@kazuho
Copy link
Member

kazuho commented May 5, 2013

IMO this should be (can be) handled by #157, although I wonder if always stripping unused code is a good idea.

OTOH, why don't you use try-catch inside the native(...) attribute to defer the problem being detected? The JavaScript expression within the native(...) attribute may return null if the load failed.

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

No branches or pull requests

2 participants