@mbsks/rspfx-sharepoint-runtime
v0.0.14
Published
RSPFX shims/bridges for @microsoft/sp-* packages
Readme
@mbsks/rspfx-sharepoint-runtime
SharePoint runtime bridges for RSPFX — an SPFx-compatible build toolchain powered by Rspack.
Shims and bridges that let @microsoft/sp-* packages run in the local playground sandbox: mock web part context, playground loaders, and environment emulation.
Install
npm i @mbsks/rspfx-sharepoint-runtimeRequires the @microsoft/sp-webpart-base and @microsoft/sp-core-library peer packages.
Usage
import {
createMockWebPartContext,
createPlaygroundLoader,
PLAYGROUND_SERVICE_KEY
} from '@mbsks/rspfx-sharepoint-runtime';
const context = createMockWebPartContext({ tenantDomain: 'contoso.sharepoint.com' });API
createMockWebPartContext(opts)— SPFx-like context for the local sandboxcreatePlaygroundLoader(...)— load web parts in the playgroundPLAYGROUND_SERVICE_KEY— service key used by the playground runtime
Links
- RSPFX documentation
- License: MIT
