npm package diff
Package: @forge/bundler
Versions: 4.17.4-next.0-experimental-10722bc - 4.19.0-next.13
File: package/out/config/common.d.ts
Index: package/out/config/common.d.ts
===================================================================
--- package/out/config/common.d.ts
+++ package/out/config/common.d.ts
@@ -1,6 +1,8 @@
+/// <reference types="node" />
import { Configuration as WebpackConfig, ModuleOptions } from 'webpack';
import { Handler } from '@forge/cli-shared';
+import { Translations } from '@forge/manifest';
export interface ConfigBuilder {
isWatchMode: boolean;
isDebugMode?: boolean;
appDirectory: string;
@@ -19,7 +21,19 @@
declare type RequiredFields<T, F extends keyof T> = T & Required<Pick<T, F>>;
declare type CommonModuleOptions = RequiredFields<ModuleOptions, 'rules'>;
export declare type WebpackEntries = Record<string, string>;
export declare type CommonWebpackConfig = RequiredFields<WebpackConfig, 'module' | 'plugins' | 'output'> & Record<'module', CommonModuleOptions> & Record<'entry', WebpackEntries>;
+export declare const geti18nRule: (i18nConfig: Translations) => {
+ test: RegExp;
+ include: string[];
+ type: string;
+ generator: {
+ filename: ({ module: { resource: i18nResourcePath } }: {
+ module: {
+ resource: string;
+ };
+ }) => string;
+ };
+};
export declare const getCommonWebpackConfig: (entrypoints: EntryPoint[], config: ConfigBuilder) => CommonWebpackConfig;
export {};
//# sourceMappingURL=common.d.ts.map
\ No newline at end of file