thelevicole / youtube-to-html5-loader

Load YouTube videos with the HTLML5 <video> element without needing iframes or the YouTube JS API.

Home Page:https://thelevicole.com/youtube-to-html5-loader/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use it with es6 modules

grcmichael opened this issue · 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 !