Skip to content

Could we imagine a package with only bs-platform/lib js files? #3192

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

Closed
MoOx opened this issue Dec 6, 2018 · 2 comments
Closed

Could we imagine a package with only bs-platform/lib js files? #3192

MoOx opened this issue Dec 6, 2018 · 2 comments

Comments

@MoOx
Copy link
Contributor

MoOx commented Dec 6, 2018

I am writing something with reason and js (legacy to migrate step by step) but I am shipping generated code as js only (for now, via npm).

I would like to avoid my end-users to have to download the entire bs-platform package (because they don't have too). At the end they only need bs-platform/lib/*.js.

Can we think of a solution for this? Maybe a monorepo with multiple packages with one that only provide bs js files?

@bobzhang
Copy link
Member

bobzhang commented Dec 6, 2018

Hi @MoOx , that's something we are actively working on and hopefully to deliver a good solution in the future.
Currently the best bet is doing some post-processing around generated JS files or add bs-platform as a dependency.
Since this is a duplicated issue, I am going to close it.

@bobzhang bobzhang closed this as completed Dec 6, 2018
@MoOx
Copy link
Contributor Author

MoOx commented Dec 6, 2018

I guess it's duplicate with #2127 and maybe #3164.
Thanks for the heads up. Will look into that.

If you need a hand on something I can try to help for the monorepo situation (if necessary, I understand that there is alternative to using a npm package and put directly consumed js and adjust paths).

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