unplugin-replace Replace target strings in files while bundling, powered by unplugin. Install npm i -D unplugin-replace Usage import replace from 'unplugin-replace' const esbuildPlugin = replace.esbuild([ { from: 'STRING_OR_REGEXP', to: 'STRING' } ])