thelevicole/youtube-to-html5-loader

How to use it with es6 modules

grcmichael opened this issue · 2 comments

Hi, I'd like to use your library using es6 modules,
so I can use the import syntaxe.
Indeed the require() syntaxe doesn't work with my workflow.

Can I do this with your module ?
Thank you very much

Use

import YouTubeToHtml5 from "@thelevicole/youtube-to-html5-loader";

thanks a lot for your answer, i added useless brace char !