ES module import?
#8926
-
The documentation tells how to install video.js from npm, but I can find nowhere that tells me what import statement to use to add the player to my existing bundle. I have looked at the source of various examples and nowhere do I see that es modules are used. What would the import statement be? |
Beta Was this translation helpful? Give feedback.
Answered by
Thexasan
Dec 29, 2024
Replies: 1 comment 1 reply
-
To use Video.js in your project with ES modules, you can use the following import statement: import videojs from 'video.js'; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
fpolli
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
To use Video.js in your project with ES modules, you can use the following import statement: