import type { Plugin } from 'rollup' ; import rollupReplace from '@rollup/plugin-replace' ; import { BuildOptions , createReplaceData } from '../../utils/options' ; param opts returns export function replacePlugin ( opts ) { const replaceData = createReplaceData ( opts ) ; replaceData [ `process.env.NODE_DEBUG` ] = false ; replaceData [ `process.binding('natives')` ] = '' ; return rollupReplace ( replaceData ) ; }