33 lines
977 B
TypeScript
33 lines
977 B
TypeScript
import { m as BindingReplacePluginConfig } from "./shared/binding-Dsq9Azhm.mjs";
|
|
import { N as BuiltinPlugin } from "./shared/define-config-CV9D_Qea.mjs";
|
|
import { t as esmExternalRequirePlugin } from "./shared/constructors-DfpIbfMG.mjs";
|
|
|
|
//#region src/builtin-plugin/replace-plugin.d.ts
|
|
/**
|
|
* Replaces targeted strings in files while bundling.
|
|
*
|
|
* @example
|
|
* **Basic usage**
|
|
* ```js
|
|
* replacePlugin({
|
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
* __buildVersion: 15
|
|
* })
|
|
* ```
|
|
* @example
|
|
* **With options**
|
|
* ```js
|
|
* replacePlugin({
|
|
* 'process.env.NODE_ENV': JSON.stringify('production'),
|
|
* __buildVersion: 15
|
|
* }, {
|
|
* preventAssignment: false,
|
|
* })
|
|
* ```
|
|
*
|
|
* @see https://rolldown.rs/builtin-plugins/replace
|
|
* @category Builtin Plugins
|
|
*/
|
|
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
//#endregion
|
|
export { esmExternalRequirePlugin, replacePlugin }; |