question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature Request] DRY it up

See original GitHub issue

I’d love to see these messages on the package.json level and not on on every .js file. Could that be a possible setting?

For people like us on React Native it’s extra important to consider the costs of modules we include. I think the benefit is saving these import costs from ever happening by never bringing in the code at all for modules that can’t pull their weight.

Rationally, it might be an easy feature to switch all that calculating to the source in package.json.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
yairhaimocommented, Aug 2, 2017

The problem with showing it only at the package.json level is that it ignores the tree shaking aspect of the imports. Maybe we can display the size of the library based on the imports of that library that we found in the project, meaning:

file1.js:
import {func1} from 'utils'; // 2KB

file2.js
import {func2} from 'utils'; // 3KB

file3.js
import {func2, func3} from 'utils'; // 5KB

package.json
dependencies: {
'utils': '1.0.0', // 7KB
},
0reactions
shahatacommented, Apr 9, 2022

duplicate of #77

Read more comments on GitHub >

github_iconTop Results From Across the Web

dry-run" as a comfort feature to "Parameters" · Discussion #2069
[feature request] Add "--dry-run" as a comfort feature to "Parameters" ... users can easily switch on/off without remembering the exact parameter syntax.
Read more >
Latest Feature Requests topics - Neural DSP Forum
Topic Replies Views Activity Read before posting feature requests! 1 1125 March 17, 2021 Assign Splitter in A/B mode to stomp 10 436 December 28,...
Read more >
Feature Requests: What are they and how to manage them
Feature requests are a form of product feedback you may frequently encounter as a SaaS product manager. They typically come in the form...
Read more >
Feature request: plan with rename - Terraform
I've been working on DRYing up my DNS configuration with a module. That means that the names of all my resources change.
Read more >
Feature requests - Kemper Profiler Forum
We are known for frequent feature upgrades. ... Dry/Wet Parameter for Left and Right Stereo Channels ... Ibanez airplane flanger take off mode....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found