I tried the below code but it throws an error that
Caused by: :1 ReferenceError: "require" is not defined