File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,13 @@ define(function () {
5656
5757 content = transform . code ;
5858
59- if ( options . inlineSourceMap && transform . sourceMap && typeof transform . sourceMap . toJSON === 'function' ) {
60- var sourceMap = transform . sourceMap . toJSON ( ) ;
59+ if ( options . inlineSourceMap && transform . sourceMap ) {
60+ var sourceMap = transform . sourceMap ;
61+
62+ if ( typeof transform . sourceMap . toJSON === 'function' ) {
63+ sourceMap = transform . sourceMap . toJSON ( ) ;
64+ }
65+
6166 sourceMap . file = name ;
6267 sourceMap . sources [ 0 ] = config . baseUrl + name ;
6368
Original file line number Diff line number Diff line change 11{
22 "name" : " requirejs-react-jsx" ,
3- "version" : " 0.12.3 " ,
3+ "version" : " 0.13.1 " ,
44 "description" : " A RequireJS plugin for loading jsx in require.js and r.js" ,
55 "main" : " jsx.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments