dynamically load vendor supplied scripts #8579
brianpmccullough
started this conversation in
General
Replies: 1 comment
-
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
What type of issue is this?
Question
What SharePoint development model, framework, SDK or API is this about?
💥 SharePoint Framework
Target SharePoint environment
SharePoint Online
What browser(s) / client(s) have you tested
Additional environment details
Issue description
I have Vendor supplied script(s). The script should be loaded dynamically based on web part configuration. Each vendor script has same "interface", however, slightly different implementations. That is, i should be able to access the same props/methods in the vendor script namespace, but the js / script used changes. Preference to bundle script , rather than load from their CDN so that scripts can be reviewed "as-is". I put this together to show dynamic execution of script using require.context. https://github.com/brianpmccullough/spfx-dynamic-require-sample
Thoughts?
Beta Was this translation helpful? Give feedback.
All reactions