ES6 distribution and `module` in `package.json`
See original GitHub issueFrom https://github.com/atomiks/tippyjs/blob/master/scripts/build.js#L73 , it looks like an ES6 Module build was envisioned, but the config is not actually written to file there.
For those taking advantage of ES6 modules (without the need for plugins to convert from UMD), could you include that ES6 Module distribution and reference that file in package.json via the module property?
See e.g., https://medium.com/webpack/webpack-and-rollup-the-same-but-different-a41ad427058c
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:15 (15 by maintainers)
Top Results From Across the Web
How to build, test and release a node module in ES6
Create a new directory for your project that will contain the code for your npm package. Navigate to that directory. For unscoped modules...
Read more >Build a JavaScript Util Library for NPM with ES6 Modules and ...
Build a JavaScript Util Library for NPM with ES6 Modules and CommonJS ... We need our own JavaScript utility library that we can...
Read more >How to Create a Hybrid NPM Module for ESM and CommonJS.
Creating a single NPM module that works in all environments. ... Author your code in ES6, ES-Next or Typescript using import and export....
Read more >javascript - How to distribute an es6 package with submodules
First, let me try to explain how Node sub-modules with a slash are handled by Node. When you import the module with a...
Read more >Imply ES6 module package, when package.json contanis ...
The package.json of the latter contains "main": "dist/index.js", "module": "dist/index.es.js ...
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 Free
Top 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

Sorry for not responding 🙏
V2 is only getting bugfixes now, all features are going to V3 which is tagged
tippy.js@next.I’ve just released
3.0.0-alpha.1with anesmdirectory and module field linking todist/esm/tippy.js.Hope that helps 😄
Great yeah, there’s that option too, it’s just not the default in “module” because of build tools which should import the latest Popper.js version.