rolldown
Version:
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
32 lines • 1 kB
text/typescript
import { h as BindingReplacePluginConfig } from "./shared/binding-Dbbi0RbO.mjs";
import { F as BuiltinPlugin } from "./shared/define-config-B-IDOhDz.mjs";
import { t as esmExternalRequirePlugin } from "./shared/constructors-CSWbNgBZ.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 };