liferay-npm-bundler-preset-reactjs
Version:
liferay npm bundler preset react
28 lines (24 loc) • 604 B
text/typescript
/**
* SPDX-FileCopyrightText: © 2020 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: LGPL-3.0-or-later
*/
import {BundlerPluginEntryPoint} from '../api/plugins';
/**
* An bundler plugin description.
*
* @remarks
* Note that `run` field has a different signature for each plugin type (see
* {@link BundlerPluginEntryPoint}).
*
* @see BundlerPluginEntryPoint
*/
export interface BundlerPluginDescriptor<T> {
config: object;
name: string;
run: BundlerPluginEntryPoint<T>;
}
/** Plugin version information */
export interface VersionInfo {
path: string;
version: string;
}