UNPKG

@atlassian/webresource-webpack-plugin

Version:

Auto-generates web-resource definitions from your webpacked code, for usage in an Atlassian product or plugin.

9 lines (8 loc) 526 B
/** * Set of wrappers to bridge differences between webpack and rspack */ import type { Compiler as CompilerRspack } from '@rspack/core/dist/Compiler'; import type { Compiler as CompilerWebpack } from 'webpack'; export declare const isRspackCompiler: (compiler: CompilerWebpack | CompilerRspack) => compiler is CompilerRspack; export declare const createError: (compiler: CompilerWebpack | CompilerRspack, message: string) => any; export declare const getRuntimeGlobals: (compiler: CompilerWebpack | CompilerRspack) => any;