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.

include src in npm package

See original GitHub issue

noticed that the lib started to bundle fetch polyfills and according to https://github.com/airbrake/airbrake-js/pull/476/files#r219801170 this was done on purpose for people that don’t use webpack

could you then add src folder to the npm distribution for people that do use webpack and do not want additional dependencies?

also the corss-fetch could at least be peerDependency

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
vmihailencocommented, Jul 15, 2019

Next major v2.0 will be shipped with sources and different bundle formats (iife, cjs, esm). Hopefully it will not bring too much chaos.

0reactions
dreykscommented, Jul 15, 2019

thx. will give it a try when it lands

Read more comments on GitHub >

github_iconTop Results From Across the Web

Should I publish my module's source code on npm?
In my opinion, the best practice is to publish both minified code in dist folder and also the source code in src folder....
Read more >
Why is there no src folder in the npm install package? #44
well, the src is not included, because it is common practice to only distribute the builded dist files. If you take a look...
Read more >
About packages and modules - npm Docs
The npm registry contains packages, many of which are also Node modules, or contain Node modules. Read on to understand how they differ...
Read more >
How to publish a npm package in four steps
Step Four · Create a .npmignore file · Create an account on npmjs.com (if you dont't have one) · Run npm login ·...
Read more >
Best practices for creating a modern npm package - Snyk
You will first learn how to create an npm package, so you can get ... not missing any source code files that are...
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