Closed cdalexndr closed 3 years ago
Could you add some details on your use case?
we need to
import noUiSlider from 'noUiSlider'
//...
@ivoevolution You can currently do that:
// Either import the default:
import noUiSlider from 'nouislider';
// Or the namespace:
import * as noUiSlider from 'nouislider';
@ivoevolution You can currently do that:
Without any javascript bundler, directly in browser:
<script type="module">
import noUiSlider from 'nouislider.js'; //auto loads nouislider.js
</script>
For this to work, the distributed javascript must have esm compliant export
statements.
Other libraries build a separate .esm.js
& min file, with this specificaiton.
Ah, right. I'm open to a PR adding these distribution files.
As of noUiSlider 15.4.0 the distribution offers nouislider.mjs
and nouislider.min.mjs
. You can see the module import in action here. Thank you for contributing!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please provide esm module distribution.