UNPKG

@frontity/core

Version:

The core package of the Frontity framework.

35 lines (34 loc) 1 kB
import { BabelConfigs } from "../../../types"; import { Target, Mode, WebpackConfig } from "@frontity/types/config"; /** * The options of the {@link moduleConf} function. */ interface ModuleOptions { /** * The target of the build: "server", "es5" or "module". */ target: Target; /** * The mode of the build: "development" or "production". */ mode: Mode; /** * The configurations of Babel, generated in a previous step. */ babel: BabelConfigs; } /** * The regular expressions used to exclude packages from transpilation. */ export declare const exclude: RegExp[]; /** * Generate the object for Webpack's entry configuration. * * Official Webpack docs: https://webpack.js.org/configuration/entry-context/. * * @param options - Defined in {@link EntryOptions}. * * @returns The configuration object for Webpack. */ declare const moduleConf: ({ target, babel, mode, }: ModuleOptions) => WebpackConfig["module"]; export default moduleConf;