npm package diff
Package: @forge/bundler
Versions: 4.21.0-next.2 - 4.21.0-next.3
File: package/out/webpack.d.ts
Index: package/out/webpack.d.ts
===================================================================
--- package/out/webpack.d.ts
+++ package/out/webpack.d.ts
@@ -1,19 +1,16 @@
import webpack from 'webpack';
-import { FileSystemReader, FileSystemWriter } from '@forge/cli-shared';
-import { LintLogger } from '@forge/lint';
import { CommonOutputOptions } from './config/common';
import { Bundler, BundleLogger, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
export declare function handleWebpackCompilationResult(logger: BundleLogger, err: Error | null | undefined, stats: Pick<webpack.Stats, 'hasErrors' | 'hasWarnings' | 'toJson'> | undefined): asserts stats is webpack.Stats;
export declare function getCompiler(config: webpack.Configuration): webpack.Compiler;
-export declare const runLinter: (logger?: LintLogger, fileSystemReader?: FileSystemReader, fileSystemWriter?: FileSystemWriter) => Promise<void>;
export declare type ConfigWithOutput = webpack.Configuration & {
output: CommonOutputOptions;
};
export declare abstract class WebpackBundler implements Bundler {
protected readonly logger: BundleLogger;
constructor(logger: BundleLogger);
- protected getOutput(config: ConfigWithOutput, stats: webpack.Stats): BundlerOutput;
+ protected getOutput(config: ConfigWithOutput, stats: webpack.Stats): Promise<BundlerOutput>;
protected runCompiler(config: ConfigWithOutput): Promise<BundlerOutput>;
abstract getConfig(args: BundlerArgs): ConfigWithOutput;
bundle(args: BundlerArgs): Promise<BundlerOutput>;
watch(args: BundlerWatchArgs, watch: BundlerWatch): Promise<BundlerWatchOutput>;