Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Dynamic SPFx Bundling/Loading Web Part Example #628
What's in this Pull Request?
This web part illustrates how SPFx functionality and packages/libraries can be bundled in multiple '.js' file bundles, then be dynamically & asynchronously loaded into the page at execution time, with a button click.
It provides two different examples within the web part. The first is simple and bundles basic .ts/.js functionality into a separate file, imported upon a button click. The second examples shows how to separately bundle an library and '.scss' styles that are only needed upon a button click at execution time.