react-router icon indicating copy to clipboard operation
react-router copied to clipboard

distribute compiled JS file for including in a script tag

Open lubelski opened this issue 12 years ago • 6 comments

Any plans to distribute this as a complied JS file suitable for including via a plain old script tag? (and then potentially served via CDN)

lubelski avatar Jul 08 '14 20:07 lubelski

+1

I want to use this library in a standalone tutorial so having a precompiled JS file would be great...

zbyte64 avatar Jul 08 '14 21:07 zbyte64

This is currently really difficult for us to do because we require react/lib/invariant, react/lib/ExecutionEnvironment, and others. Currently, none of them are exposed on the React global, so we don't have access to them.

I do however agree that we should definitely have a browser build that you can drop into a <script> tag.

mjackson avatar Jul 21 '14 22:07 mjackson

Filed facebook/react#1906 to get the React maintainers' opinion on exposing lib functions for plugins.

mjackson avatar Jul 21 '14 22:07 mjackson

I created a build script and put some builds for version 0.2.1 in the build directory.

@rpflorence Not sure if you want to keep these with the repo or not. Feel free to move them wherever you want.

mjackson avatar Jul 21 '14 23:07 mjackson

Sweet, this was on my agenda for tomorrow.

Sent from my iPhone

On Jul 21, 2014, at 5:21 PM, Michael Jackson [email protected] wrote:

I created a build script and put some builds for version 0.2.1 in the build directory.

@rpflorence Not sure if you want to keep these with the repo or not. Feel free to move them wherever you want.

— Reply to this email directly or view it on GitHub.

ryanflorence avatar Jul 22 '14 01:07 ryanflorence

I'll update some docs and cut a release tonight or tomorrow morning.

Sent from my iPhone

On Jul 21, 2014, at 5:21 PM, Michael Jackson [email protected] wrote:

I created a build script and put some builds for version 0.2.1 in the build directory.

@rpflorence Not sure if you want to keep these with the repo or not. Feel free to move them wherever you want.

— Reply to this email directly or view it on GitHub.

ryanflorence avatar Jul 22 '14 01:07 ryanflorence