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.

ES6 distribution and `module` in `package.json`

See original GitHub issue

From 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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:15 (15 by maintainers)

github_iconTop GitHub Comments

1reaction
atomikscommented, Aug 11, 2018

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.1 with an esm directory and module field linking to dist/esm/tippy.js.

Hope that helps 😄

0reactions
atomikscommented, Nov 6, 2018

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.

Read more comments on GitHub >

github_iconTop 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 >

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