npm package diff
Package: @forge/bundler
Versions: 6.1.4-next.6 - 6.1.4-next.7
File: package/out/webpack.d.ts
Index: package/out/webpack.d.ts
===================================================================
--- package/out/webpack.d.ts
+++ package/out/webpack.d.ts
@@ -1,15 +1,16 @@
import webpack from 'webpack';
+import { Logger } from '@forge/cli-shared';
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;
+import { Bundler, BundlerOutput, BundlerArgs, BundlerWatch, BundlerWatchArgs, BundlerWatchOutput } from './types';
+export declare function handleWebpackCompilationResult(logger: Logger, 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 type ConfigWithOutput = webpack.Configuration & {
output: CommonOutputOptions;
};
export declare abstract class WebpackBundler implements Bundler {
- protected readonly logger: BundleLogger;
- constructor(logger: BundleLogger);
+ protected readonly logger: Logger;
+ constructor(logger: Logger);
protected getOutput(config: ConfigWithOutput, stats: webpack.Stats): Promise<BundlerOutput>;
protected isLocalModule(name: string): boolean;
protected localModules(stats: webpack.Stats): string[];
protected runCompiler(config: ConfigWithOutput): Promise<BundlerOutput>;