Skip to content

Replace the use of 'require' by 'import' to reduce library side and improve performance. (Tree shaking) #1399

@sadortun

Description

@sadortun

New Feature / Enhancement Checklist

Current Limitation

Follow up of the discussion on #203

Currently, the SDK is imported globally, and the compilers cannot optimize the imports and remove unused code.

Firebase have a great explanation
https://firebase.googleblog.com/2021/08/the-new-firebase-js-sdk-now-ga.html?m=1

Feature / Enhancement Description

This would allow to reduce the compiled client side app by eliminating the unused code.

This would also allow to fix #203 by allowing to create instances the Parse library for those who need to interact with multiple Servers.

Example Use Case

Alternatives / Workarounds

3rd Party References

https://www.codingame.com/playgrounds/7463/tree-shaking-in-javascript-with-rollup

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:featureNew feature or improvement of existing feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions