File tree 1 file changed +4
-3
lines changed
1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import classNames from 'classnames' ;
2
+ import * as modClassNames from 'classnames' ;
3
3
import * as modAccordion from '../../src/Accordion' ;
4
4
import * as modAlert from '../../src/Alert' ;
5
5
import * as modBadge from '../../src/Badge' ;
@@ -45,6 +45,7 @@ import * as modWell from '../../src/Well';
45
45
import { CodeMirror , IS_NODE } from './CodeMirror' ;
46
46
import babel from 'babel-core/browser' ;
47
47
48
+ const classNames = modClassNames . default ;
48
49
/* eslint-disable */
49
50
const Accordion = modAccordion . default ;
50
51
const Alert = modAlert . default ;
@@ -279,8 +280,8 @@ const ReactPlayground = React.createClass({
279
280
console . error ( e ) ;
280
281
}
281
282
283
+ let compiledCode = this . compileCode ( ) ;
282
284
try {
283
- let compiledCode = this . compileCode ( ) ;
284
285
if ( this . props . renderCode ) {
285
286
React . render (
286
287
< CodeMirrorEditor codeText = { compiledCode } readOnly = { true } /> ,
@@ -292,7 +293,7 @@ const ReactPlayground = React.createClass({
292
293
/* eslint-enable */
293
294
}
294
295
} catch ( err ) {
295
- console . log ( err ) ;
296
+ console . log ( err , compiledCode ) ;
296
297
this . setTimeout ( ( ) => {
297
298
React . render (
298
299
< Alert bsStyle = 'danger' > { err . toString ( ) } </ Alert > ,
You can’t perform that action at this time.
0 commit comments