Giter Site home page Giter Site logo

Comments (4)

webytecno avatar webytecno commented on May 3, 2024 1

I was facing the same issue, but I really needed this library to know which bundle was increasing my app size. I found out, there's a file called haul.config.js inside the package, where you can exclude certain packages from "node_modules" for the analysis.

So I added there the two packages I wanted to exclude, and now it works like a charm.

You have to modify the line 11, in my case, I excluded native-base-shoutem-theme and redux-persist-fs-storage, which was causing the trouble:
config.module.rules[1].exclude = /node_modules(?!.*[\/\\](react|@react-navigation|**native-base-shoutem-theme|redux-persist-fs-storage**|@react-native-community|@expo|pretty-format|haul|metro))/;

Of course is not a "REAL" solution, but it can help you to achieve what you're trying to do.

Hope it helps!

from react-native-bundle-visualizer.

el-lsan avatar el-lsan commented on May 3, 2024 1

@webytecno Thanks for sharing your solution! cheers 🍻

from react-native-bundle-visualizer.

IjzerenHein avatar IjzerenHein commented on May 3, 2024

Hi, a new V2 version has been created which most likely solves this problem as well:
https://github.com/IjzerenHein/react-native-bundle-visualizer/tree/v2

from react-native-bundle-visualizer.

IjzerenHein avatar IjzerenHein commented on May 3, 2024

Closing as the problem described was a Haul related problem and V2 has been released which uses the Metro bundler

from react-native-bundle-visualizer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.