metro-babel7-plugin-react-transform
Advanced tools
Comparing version 0.49.2 to 0.50.0
{ | ||
"version": "0.49.2", | ||
"version": "0.50.0", | ||
"name": "metro-babel7-plugin-react-transform", | ||
@@ -4,0 +4,0 @@ "main": "src/index.js", |
@@ -29,2 +29,5 @@ /** | ||
const _require2 = require("path"), | ||
relative = _require2.relative; | ||
function find(obj, func) { | ||
@@ -383,3 +386,8 @@ let value = undefined; | ||
toObjectExpression({ | ||
filename: t.stringLiteral(this.file.opts.filename || "unknown"), | ||
filename: t.stringLiteral( | ||
// Equivalent to `this.file.opts.sourceFileName` when defined. | ||
this.file.opts.filename | ||
? relative(this.file.opts.cwd, this.file.opts.filename) | ||
: "unknown" | ||
), | ||
components: componentsDeclarationId, | ||
@@ -386,0 +394,0 @@ locals: t.arrayExpression(transformLocals), |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
13286
393
1