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.

Bundle and expose as ES module

See original GitHub issue

Is your feature request related to a problem? Please describe. I would like to use Polymer 3 with ApexCharts but Polymer 3 only works with ES Bundles. I would need Webpack bundling to get ApexCharts to work,.

Describe the solution you’d like I would like to import this way :

import { ApexCharts } from 'apexcharts'

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
gulleryacommented, May 27, 2019

Just last suggestion - please consider to provide minified version of the esm bundle in addition to the basic one (it is about 400+K now). Thanks and well done!

1reaction
junedchhipacommented, May 26, 2019

Have you tried importing from apexcharts/dist/apexcharts.esm.js ? I have tried exporting all possible formats - https://unpkg.com/apexcharts@3.7.0/dist/

Read more comments on GitHub >

github_iconTop Results From Across the Web

ECMAScript Modules - webpack
Its main purpose is to bundle JavaScript files for usage in a browser, ... The export keyword allows to expose things from an...
Read more >
Output an ES module using webpack - Stack Overflow
If you want your module to be used in different environments then you can bundle it as a library by adding the library...
Read more >
How to transpile ES modules with webpack and Node.js
Learn how webpack interacts with and supports ES modules in this deep dive tutorial on transpilation in Node.js.
Read more >
JavaScript modules - MDN Web Docs
This guide gives you all you need to get started with JavaScript module syntax. A background on modules. JavaScript programs started off pretty ......
Read more >
webpack – How To Generate an ES Module bundle
In this post I will detail how you can use webpack to output a library (bundle) file that exposes the ECMAscript module (ESM)...
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