Bundle and expose as ES module
See original GitHub issueIs 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:
- Created 5 years ago
- Comments:6 (2 by maintainers)
Top 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 >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
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!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/