Skip to content

[Web] Tree Shaking #154

@nandorojo

Description

@nandorojo

Ask your Question

Hey there, thanks for this awesome package, it's seriously a life saver.

I'm experiencing an issue with my package, Dripsy, on web. It appears that importing dripsy is importing all of React Native Web, adding about 500kb more than I need to my site. I have sideEffects: false in my package.json file, but this seems to have no effect.

I was wondering if you have any suggestions for how to solve that. Should I try using the react-native-web babel plugin in my babel config for bob? I'm not that familiar with Babel and how it works, so I figured I'd ask. I'm using Expo web, and have dripsy in my transpile modules file, so I figured this would apply the RNW babel plugin to it. But it seems like it isn't.

Let me know if any suggestions come to mind. Thanks again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions