node_modules/prosemirror-transform/dist/index.es.js
// would be a no-op (an empty slice over an empty range).
would be a no-op (an empty slice over an empty range).
would be a no - op ( an empty slice over an empty range ) .
function replaceStep(doc, from, to, slice) {
  if ( to === void 0 ) to = from;
  if ( slice === void 0 ) slice = Slice.empty;
  if (from == to && !slice.size) { return null }
  var $from = doc.resolve(from), $to = doc.resolve(to);
  if (fitsTrivially($from, $to, slice)) { return new ReplaceStep(from, to, slice) }
  return new Fitter($from, $to, slice).fit()
}
function replaceStep ( doc , from , to , slice ) { if ( to === void 0 ) to = from ; if ( slice === void 0 ) slice = Slice . empty ; if ( from == to && ! slice . size ) { return null } var $from = doc . resolve ( from ) , $to = doc . resolve ( to ) ; if ( fitsTrivially ( $from , $to , slice ) ) { return new ReplaceStep ( from , to , slice ) } return new Fitter ( $from , $to , slice ) . fit ( ) }
would be a no-op (an empty slice over an empty range).
would be a no - op ( an empty slice over an empty range ) .
// Optimization -- avoid work if it's obvious that it's not needed.