npm package diff
Package: @forge/bundler
Versions: 4.18.1-next.8-experimental-c7a7d36 - 4.19.0-next.11
File: package/out/types.d.ts
Index: package/out/types.d.ts
===================================================================
--- package/out/types.d.ts
+++ package/out/types.d.ts
@@ -1,5 +1,6 @@
import { Logger } from '@forge/cli-shared';
+import { Translations } from '@forge/manifest';
import { Compiler } from 'webpack';
import { EntryPoint } from './webpack';
export declare type BundledFiles = {
[filename: string]: string;
@@ -11,10 +12,10 @@
[key: string]: any;
};
}
export declare type BundleLogger = Pick<Logger, 'info' | 'warn'>;
-export declare type Bundler<EP = EntryPoint> = (logger: BundleLogger, appDirectory: string, endpointPath: EP[]) => Promise<BundlerOutput>;
-export declare type InDiskBundler = (logger: BundleLogger, entrypoints: EntryPoint[]) => Promise<{
+export declare type Bundler<EP = EntryPoint> = (logger: BundleLogger, appDirectory: string, endpointPath: EP[], i18nConfig?: Translations) => Promise<BundlerOutput>;
+export declare type InDiskBundler = (logger: BundleLogger, entrypoints: EntryPoint[], i18nConfig?: Translations) => Promise<{
outputDir: string;
}>;
export declare type WatcherCallback = (err: Error | null, output?: BundlerOutput) => void;
export interface WatcherMonitor {