Add compiled dist version to npm package?
See original GitHub issueWondering whether to add a compiled ES5 version of the library which polyfills the global ResizeObserver
on the window
.
This makes it easier to integrate into older projects.
Would this be helpful?
Issue Analytics
- State:
- Created 5 years ago
- Reactions:4
- Comments:13 (8 by maintainers)
Top Results From Across the Web
Adding dist-tags to packages - npm Docs
Adding a dist-tag to a specific version of your package. On the command line, navigate to the root directory of your package.
Read more >How can I publish an npm package with distribution files?
Currently when I run npm publish from my Git repository, it results in only the src folder being published. My package.json file looks...
Read more >How to Create an npm Package Ready to Distribute - Bugfender
First, navigate to your library file path, the same path in which you placed your package. json , and use the command npm...
Read more >How to make your own npm package with typescript
#Part 2: Adding typescript. Let's try adding typescript. To do this, we will use the typescript compiler to compile a directory of files...
Read more >Best practices for creating a modern npm package - Snyk
In this tutorial, we're going to walk step by step through creating an npm package using modern best practices (as of 2022).
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
I just tried to use the library in our Meteor project and it fails because Meteor only transpiles app code, not libraries. It’s the only library I’ve had this issue with. I suggest releasing a
dist/
directory on npm with the ES5 version and point themain
key of thepackage.json
file to this path (you can keep themodule
key as is). You can use UMD for this so that it can still be require’d without polluting the globalwindow
.v2.2.0
is now published in ES5