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

Precompiled source? #20

Closed
peterugh opened this issue Mar 27, 2017 · 1 comment
Closed

Precompiled source? #20

peterugh opened this issue Mar 27, 2017 · 1 comment

Comments

@peterugh
Copy link

I'm working in an ecosystem that doesn't support npm modules. I've compiled from source but the outputted file is asking for require which I don't have in the build pipeline. Can someone point me to an es5 compiled version that I can include with a <script> tag old school style?

@asbjornenge
Copy link
Owner

@peterugh you need to look into building to as an umd module. Take a look here: https://github.com/umdjs/umd I'm pretty sure both browserify and webpack can spit that out, but you need to configure what to ignore, so that it won't bundle the whole React code into the bundle 😛

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

2 participants