rolldown
Version:
Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.
31 lines (29 loc) • 887 B
text/typescript
import { t as BuiltinPlugin } from "./shared/utils-BJWI2OzT.mjs";
import { l as BindingReplacePluginConfig } from "./shared/binding-lSvYApx7.mjs";
import { t as esmExternalRequirePlugin } from "./shared/constructors-DgFF472b.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 };