Comments (4)
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.
@webytecno Thanks for sharing your solution! cheers 🍻
from react-native-bundle-visualizer.
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.
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)
- This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch().
- This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). HOT 1
- How to visualize with source-map-explorer ? HOT 2
- triggerUncaughtException with react-native 0.71.2 HOT 11
- Source-map-explorer error HOT 37
- Bundle size does not reflect App Store size HOT 5
- Option to resolve path alias? HOT 5
- Running bundle visualizer in Expo project using Expo Router HOT 4
- What does [EOLs] represent in the bundle?
- No details? HOT 1
- Accept metro bundler config as an argument. HOT 1
- Pass existing bundle as argument HOT 7
- Cannot find module 'expo-asset/tools/hashAssetFiles' HOT 1
- Getting error command failed. HOT 7
- Unable to map error HOT 6
- Fails with collision warning on Expo 42 & AWS Amplify HOT 2
- Cannot read property `pipe` of undefined HOT 3
- Verbose gives size [object Object] HOT 1
- EXPO SDK 44: error Unable to resolve module ../../App from node_modules/expo/AppEntry.js:
- Nx compatible? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-bundle-visualizer.