@fluidframework/web-code-loader
TypeScript icon, indicating that this package has built-in type declarations

1.4.0 • Public • Published

@fluidframework/web-code-loader

import { IPackageConfig } from "@fluidframework/container-definitions";
import { IResolvedPackage } from "@fluidframework/web-code-loader";
import { IFluidPackage } from "@fluidframework/core-interfaces";

const cdnLink = "https://pragueauspkn.azureedge.net/@fluid-example/clicker@0.9.11445/dist/main.bundle.js";
const linkedLibraryName = "main";
const scope = "@random";

const testPackage: IFluidPackage = {
    name: `${scope}/name`,
    version: "0.0.1",
    fluid: {
        browser: {
            umd: {
                files: [
                    cdnLink,
                ],
                library: linkedLibraryName,
            },
        },
    },
};

const testConfig: IPackageConfig = {
    [`${scope}:cdn`]: cdnLink,
};

export const testResolvedPackage: IResolvedPackage = {
    details: { // IFluidCodeDetails
        package: testPackage,
        config:  testConfig,
    },
    parsed: {
        full: "",
        pkg: "",
        name: "",
        version: "",
        scope: scope,
    },
    pkg: testPackage,
    packageUrl: "",
};

See GitHub for more details on the Fluid Framework and packages within.

Readme

Keywords

none

Package Sidebar

Install

npm i @fluidframework/web-code-loader

Weekly Downloads

131

Version

1.4.0

License

MIT

Unpacked Size

127 kB

Total Files

62

Last publish

Collaborators

  • ms-fluid-bot
  • curtisman