atlassian-webresource-webpack-plugin
Version:
Auto-generates web-resource definitions from your webpacked code, for usage in an Atlassian product or plugin.
17 lines (16 loc) • 1.16 kB
TypeScript
import type { Chunk, Compilation, Compiler, Module } from 'webpack';
import type { Entrypoint } from './types/extracted-webpack-types';
import type { WrmResource } from './types/types';
export declare const getAllAsyncChunks: (entryPoints: Entrypoint[]) => Chunk[];
export declare const getChunkModules: (compilation: Compilation, chunk: Chunk) => Module[];
export declare const getExternalResourcesForChunk: (compilation: Compilation, chunk: Chunk) => WrmResource[];
export declare const getDependenciesForChunks: (compilation: Compilation, val: Chunk | Chunk[]) => string[];
export declare const isRunningInProductionMode: (compiler: Compiler) => boolean;
export declare const isSingleRuntime: (compiler: Compiler) => boolean;
export declare const extractLibraryDetailsFromWebpackConfig: (compiler: Compiler) => {
target: "module" | "import" | "var" | "amd" | "assign" | "this" | "window" | "self" | "global" | "commonjs" | "commonjs2" | "commonjs-module" | "commonjs-static" | "amd-require" | "umd" | "umd2" | "jsonp" | "system" | "promise" | "script" | "node-commonjs" | undefined;
name: undefined;
} | {
target: string;
name: string;
};