LDflex / Query-Solid

Simple access to data in Solid pods through LDflex expressions
https://solid.github.io/query-ldflex/
MIT License
66 stars 15 forks source link

Make Webpack configuration for an ES6 module #25

Open yukulele opened 5 years ago

yukulele commented 5 years ago

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

RubenVerborgh commented 5 years ago

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

yukulele commented 5 years ago

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';
RubenVerborgh commented 5 years ago

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

yukulele commented 5 years ago

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

Rollup could probably do it.