Skip to content

Using require instead of import #356

Answered by idiotWu
mario-lemes asked this question in Q&A
Discussion options

You must be logged in to vote

Sure that's possible! Since this module is defined as UMD, you can simply use var Scrollbar = require('smooth-scrollbar') in your code.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by idiotWu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
2 participants
Converted from issue

This discussion was converted from issue #20 on June 10, 2021 17:04.