File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,11 +63,27 @@ class Playground extends React.Component {
6363
6464 const options = Object . assign ( defaultOptions , original . options ) ;
6565
66- // backwards support for old parser `babylon`
66+ // 0.0.10 ~ 0.0.10
6767 if ( options . parser === "babylon" ) {
6868 options . parser = "babel" ;
6969 }
7070
71+ // 1.8.2 ~ 1.9.0
72+ if ( typeof options . proseWrap === "boolean" ) {
73+ options . proseWrap = options . proseWrap ? "preserve" : "never" ;
74+ }
75+
76+ // 0.0.0 ~ 1.9.0
77+ if ( typeof options . trailingComma === "boolean" ) {
78+ options . trailingComma = options . trailingComma ? "es5" : "none" ;
79+ }
80+
81+ // 0.17.0 ~ 2.4.0
82+ if ( options . jsxBracketSameLine ) {
83+ delete options . jsxBracketSameLine ;
84+ options . bracketSameLine ??= options . jsxBracketSameLine ;
85+ }
86+
7187 const codeSample = getCodeSample ( options . parser ) ;
7288 const content = original . content || codeSample ;
7389 const needsClickForFirstRun =
You can’t perform that action at this time.
0 commit comments