Query-Solid icon indicating copy to clipboard operation
Query-Solid copied to clipboard

Make Webpack configuration for an ES6 module

Open yukulele opened this issue 6 years ago • 4 comments

Hi, We need to be able LDFlex as an ES6 module that could be imported directly from a CDN in a browser.

yukulele avatar May 05 '19 15:05 yukulele

Does https://solid.github.io/query-ldflex/dist/solid-query-ldflex.bundle.js help?

RubenVerborgh avatar May 05 '19 15:05 RubenVerborgh

Thank you, but it doesn't work, what I would like is to be able to import it in the es6 style:

import solid from 'solid-query-ldflex-es6.js';

yukulele avatar May 07 '19 12:05 yukulele

Got it; creating a webpack configuration for this purpose will do, and then we can reuse the same build mechanism.

RubenVerborgh avatar May 07 '19 12:05 RubenVerborgh

unfortunately, webpack seam unable to target es6 module output. https://github.com/webpack/webpack/issues/2933

Rollup could probably do it.

yukulele avatar May 10 '19 01:05 yukulele