Skip to content

The bs-platform package size is too large #2723

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
plantain-00 opened this issue Apr 7, 2018 · 3 comments
Closed

The bs-platform package size is too large #2723

plantain-00 opened this issue Apr 7, 2018 · 3 comments

Comments

@plantain-00
Copy link

The zipped bs-platform package size is 44MB, I want to use it in aws lambda or electronjs, I have to remove files in bs-platform package except the lib/js and package.json, so can lib/js released as another npm package? it will be helpful.

Feel free to close this if no plan to do it.

@jchavarri
Copy link
Contributor

@plantain-00 I have an exploration PR that attempts to solve precisely this in #2171.

There's also a related conversation in #2127.

@Enalmada
Copy link

bs-platform size is so huge I manually do some crazy hacks to copy lib/js files out and then remove it from my node_modules after build. This is not always possible in deployment solutions like zeit now where they handle the build...I get disk space errors even trying to build my bs-platform project on zeit now v2.

@benadamstyles
Copy link
Contributor

A simple solution to this is to bundle your JS output before uploading to AWS. Parcel is a no-config, very simple solution.

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

4 participants