30 lines
894 B
TypeScript
30 lines
894 B
TypeScript
import { m as BindingReplacePluginConfig } from "./shared/binding-BLUhc7Nl.mjs";
|
|
import { M as BuiltinPlugin } from "./shared/define-config-Cj8yDgkV.mjs";
|
|
import { t as esmExternalRequirePlugin } from "./shared/constructors-DIU14v_Z.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,
|
|
* })
|
|
* ```
|
|
*/
|
|
declare function replacePlugin(values?: BindingReplacePluginConfig["values"], options?: Omit<BindingReplacePluginConfig, "values">): BuiltinPlugin;
|
|
//#endregion
|
|
export { esmExternalRequirePlugin, replacePlugin }; |