This plugin will look for declareSubApp calls and do these:

  1. instruct webpack to name the dynamic import bundle as subapp-<name>
  2. collect the subapp meta info and save them as subapps.json

Constructors

  • Parameters

    • options: {
          assetsFile?: string;
          declareApiName?: string | string[];
          webpackVersion?: number;
      } = {}

      subapp plugin options

      • Optional assetsFile?: string

        Filename to output the subapp assets JSON file default: subapps.json

      • Optional declareApiName?: string | string[]

        The API names for declaring subapp and components

      • Optional webpackVersion?: number

        Webpack version (4, 5, etc)

        minimum 4

    Returns SubAppWebpackPlugin

Properties

_assetsFile: string
_declareApiNames: string[]
_makeIdentifierBEE: Function
_subApps: Record<string, any>
_tapAssets: Function
_webpackMajorVersion: number

Methods

  • Returns {
        BasicEvaluatedExpression: any;
        makeIdentifierBEE: ((expr) => any);
        tapAssets: ((compiler) => void);
    }

    • BasicEvaluatedExpression: any
    • makeIdentifierBEE: ((expr) => any)
        • (expr): any
        • Parameters

          • expr: any

          Returns any

    • tapAssets: ((compiler) => void)
        • (compiler): void
        • Parameters

          • compiler: any

          Returns void

  • Returns {
        BasicEvaluatedExpression: any;
        makeIdentifierBEE: ((expr) => any);
        tapAssets: ((compiler) => void);
    }

    • BasicEvaluatedExpression: any
    • makeIdentifierBEE: ((expr) => any)
        • (expr): any
        • Parameters

          • expr: any

          Returns any

    • tapAssets: ((compiler) => void)
        • (compiler): void
        • Parameters

          • compiler: any

          Returns void