include src in npm package
See original GitHub issuenoticed 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:
- Created 5 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Next major v2.0 will be shipped with sources and different bundle formats (iife, cjs, esm). Hopefully it will not bring too much chaos.
thx. will give it a try when it lands