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

package is too much to wechat weapp #1331

Closed
4 tasks
daddyauden opened this issue Mar 24, 2021 · 6 comments
Closed
4 tasks

package is too much to wechat weapp #1331

daddyauden opened this issue Mar 24, 2021 · 6 comments

Comments

@daddyauden
Copy link

New Issue Checklist

Issue Description

As we knows, wechat miniprogram package size is 2mb limit, parse package size is about 400-500kb, so have any idea to make package less size?

Steps to reproduce

Actual Outcome

Expected Outcome

Environment

Server

  • Parse Server version: 4.5.0
  • Operating system: Ubuntu 18.04.5
  • Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local server

Database

  • System (MongoDB or Postgres): MongoDB
  • Database version: 4.2
  • Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local

Client

  • Parse JS SDK version: 3.1.0

Logs

@davimacedo
Copy link
Member

This is how wechat release is built: https://github.com/parse-community/Parse-SDK-JS/blob/master/gulpfile.js#L99

Maybe we could try to remove some dependencies that may not be necessary for wechat.

Also, I've never built wechat miniprogram, and I am not sure if that's possible, but maybe you can try to load the sdk from the cdn instead of embedding it in the program.

@dplewis
Copy link
Member

dplewis commented Mar 24, 2021

Does SDK version 3.1.0 work with WeChat? If so we can close #1127

if you want you can fork the project and strip it down to use only what you need.

The REST Api is also an option

@daddyauden
Copy link
Author

it's a good idea, but i dont know which file can remove, better way is keep the base functionnality for miniprogram.

@dplewis
Copy link
Member

dplewis commented Mar 24, 2021

Here is the PR #874 if you want to see base

@daddyauden
Copy link
Author

@dplewis works well, thanks so much.

@dplewis dplewis closed this as completed Mar 31, 2021
@dplewis
Copy link
Member

dplewis commented Mar 31, 2021

Glad you got it to work.

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

3 participants