rollup-plugin-jsx
Advanced tools
Comparing version 1.0.2 to 1.0.3
13
index.js
@@ -11,3 +11,3 @@ var jsx = require('jsx-transform') | ||
if ( !filter( id ) ) return null | ||
var s = new MagicString( code ) | ||
@@ -17,13 +17,8 @@ var out = jsx.fromString(code, options) | ||
var result = { | ||
code: s.toString() | ||
return { | ||
code: s.toString(), | ||
map: s.generateMap({ hires: true }) | ||
} | ||
if (options.sourceMap){ | ||
result.map = s.generateMap({ hires: true }) | ||
} | ||
return result | ||
} | ||
} | ||
} |
{ | ||
"name": "rollup-plugin-jsx", | ||
"version": "1.0.2", | ||
"version": "1.0.3", | ||
"description": "Rollup jsx plugin", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1854
19