William Goldman's The Princess Bride is famous (among other reasons) for a literary device it employs - it pretends to be an abridgment (or "the good parts version") of a longer work by S. Morgenstern, and Goldman's "commentary" asides are constant throughout.
Of course, Morgenstern and his book do not exist.
Was pretending to be an abridgement of a made-up work invented by William Goldman as a literary device for published literature? If not, where did it originate and what is its history?