scripts/rollup-plugin/replace.js
function toAbsolute(id) {
    return id.startsWith("./") ? path.resolve(id) : require.resolve(id)
}
function toAbsolute(id) {
    return id.startsWith("./") ? path.resolve(id) : require.resolve(id)
}
function toAbsolute ( id ) { return id . startsWith ( "./" ) ? path . resolve ( id ) : require . resolve ( id ) }
Convert a given moduleId to an absolute path.
@param {string} id The moduleId to normalize.
@returns {string} The normalized path.
Convert a given moduleId to an absolute path .