npm package diff
Package: @forge/bundler
Versions: 4.19.0-next.13 - 4.19.0-next.14
File: package/out/webpack.d.ts
Index: package/out/webpack.d.ts
===================================================================
--- package/out/webpack.d.ts
+++ package/out/webpack.d.ts
@@ -1,21 +1,15 @@
-import { IFs } from 'memfs';
-import webpack, { Compiler, Configuration as WebpackConfig } from 'webpack';
-import { Bundler, Watcher, InDiskBundler, BundlerOutput, BundleLogger } from './types';
+import webpack from 'webpack';
import { FileSystemReader, FileSystemWriter } from '@forge/cli-shared';
import { LintLogger } from '@forge/lint';
-import { CommonWebpackConfig, ConfigBuilder, EntryPoint, FunctionsEntryPoint } from './config/common';
+import { CommonWebpackConfig, ConfigBuilder, EntryPoint } from './config/common';
import { WrapperProvider } from './config/node';
-export { EntryPoint };
+import { Bundler, BundleLogger, BundlerMetadata } from './types';
export declare function handleWebpackCompilationResult(logger: BundleLogger, err: Error | null | undefined, stats: webpack.Stats | undefined): asserts stats is webpack.Stats;
-export declare function getInMemoryBundle(config: CommonWebpackConfig, fileSystem?: IFs): BundlerOutput;
-interface CompilerOptions {
- writeToDisk?: boolean;
-}
-export declare const getCompiler: (webpackConfig: WebpackConfig, options?: CompilerOptions) => Compiler;
+export declare function getCompiler(config: webpack.Configuration): webpack.Compiler;
+export declare function getMetadata(config: CommonWebpackConfig, stats?: webpack.Stats): BundlerMetadata;
export declare const runLinter: (logger?: LintLogger, fileSystemReader?: FileSystemReader, fileSystemWriter?: FileSystemWriter) => Promise<void>;
-export declare const watch: Watcher;
-export declare function createBundler<EP extends EntryPoint = EntryPoint>(getBuildConfig: (entrypoints: EP[], configBuilder: ConfigBuilder) => CommonWebpackConfig): Bundler<EP>;
+export declare function createBundler(getBuildConfig: (entrypoints: EntryPoint[], configBuilder: ConfigBuilder) => CommonWebpackConfig): Bundler;
export declare const getSandboxBundler: () => Bundler;
-export declare const getNodeBundler: (wrapperProvider: WrapperProvider) => Bundler<FunctionsEntryPoint>;
-export declare const nativeUiBundle: InDiskBundler;
+export declare const getNodeBundler: (wrapperProvider: WrapperProvider) => Bundler;
+export declare const nativeUiBundle: Bundler;
//# sourceMappingURL=webpack.d.ts.map
\ No newline at end of file