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

Pass down source-map-explorer arguments. #25

Open
wilau2 opened this issue Jan 23, 2020 · 3 comments
Open

Pass down source-map-explorer arguments. #25

wilau2 opened this issue Jan 23, 2020 · 3 comments

Comments

@wilau2
Copy link

wilau2 commented Jan 23, 2020

It would be very useful to let the user pass down source-map-explorer client options.

It would make it easier to use this lib as well to run on ci

image

@IjzerenHein
Copy link
Owner

output and only-mapped are now supported and has been released in https://github.com/IjzerenHein/react-native-bundle-visualizer/releases/tag/v2.2.1

@IjzerenHein
Copy link
Owner

Could you explain how you use this on CI and which other options would be helpful to also pass through?

@wilau2
Copy link
Author

wilau2 commented Jul 9, 2020

Hi @IjzerenHein,
I ended up using "bundlesize": "0.18.0",
where I can pass a size limit:

 "bundlesize": [
    {
      "path": "tmp.bundle",
      "maxSize": "2 mB",
      "compression": "none"
    }
  ],

For it to work, I use "bundle": "react-native bundle --entry-file index.js --bundle-output tmp.bundle --sourcemap-output tmp.map --dev false",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants