How to run Webpack without this component?

Hi all.

How to run Webpack without this component?

https://innologica.github.io/vue2-daterange-picker...

Found CDN: https://www.jsdelivr.com/package/npm/vue2-daterang...

In the head put:
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/vue2-daterange-picker@0.4.0/dist/vue2-daterange-picker.css" type='text/css'>
<script src="https://cdn.jsdelivr.net/npm/vue2-daterange-picker@0.4.0/dist/vue2-daterange-picker.umd.min.js"></script>


How to register the component?

Vue.use(DateRangePicker) does not work
April 4th 20 at 12:57
2 answers
April 4th 20 at 12:59
Solution
No use, it's simply a component.
T. e. or
Vue.component('date-range-picker', window['vue2-daterange-picker'].default);
or
{
 components: {
 DateRangePicker: window['vue2-daterange-picker'].default
 }, 
 // ...
}
April 4th 20 at 13:01
Solution
Understood.

Vue.component('date-range-picker', window['vue2-daterange-picker'].default);

Find more questions by tags Vue.js