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.

Use `main` field as default `path`

See original GitHub issue

Instead of need to set the path where size-limit will start to process files, use the package.json file main field (if missing, it’s default value index.js) as default value to be used. I think it can be a good sane default and don’t require to config size-limit, or maybe also to install it globally and just do some checking in random modules without need to modify them to add the config entry…

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
aicommented, Aug 24, 2018

If you don’t have time, I will find another developer to do it, it is not a problem (your idea is good, that is the main step here)

0reactions
pirannacommented, Sep 4, 2018

Thank you! 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to enter folder path into New Custom Field Default Value?
I am trying to make a custom text field and set the default value for it to a folder path on the C...
Read more >
How do I change the default location for Git Bash on Windows?
The easiest way without installing msysgit is right click on the Git Bash shortcut icon → Start in: → "C:\Program Files (x86)".
Read more >
package.json - npm Docs
The main field is a module ID that is the primary entry point to your program. That is, if your package is named...
Read more >
Edit Default Settings for Fields - Tableau Help
To set the default sort order, right-click (control-click on a Mac) a dimension and select Default Properties > Sort. Then use the sort...
Read more >
path for Jenkins projects when the relative path is specified for ...
The default path for any Jenkins project is relative to the workspace project folder. The following table defines the default path for a ......
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