Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

metro-babel-transformer

Package Overview
Dependencies
Maintainers
2
Versions
91
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

metro-babel-transformer - npm Package Compare versions

Comparing version 0.73.7 to 0.74.0

4

package.json
{
"name": "metro-babel-transformer",
"version": "0.73.7",
"version": "0.74.0",
"description": "🚇 Base Babel transformer for Metro.",

@@ -22,5 +22,5 @@ "main": "src/index.js",

"hermes-parser": "0.8.0",
"metro-source-map": "0.73.7",
"metro-source-map": "0.74.0",
"nullthrows": "^1.1.1"
}
}

@@ -36,2 +36,7 @@ /**

sourceType: "module",
// NOTE(EvanBacon): We split the parse/transform steps up to accommodate
// Hermes parsing, but this defaults to cloning the AST which increases
// the transformation time by a fair amount.
// You get this behavior by default when using Babel's `transform` method directly.
cloneInputAst: false,
};

@@ -44,6 +49,9 @@ const sourceAst = options.hermesParser

: parseSync(src, babelConfig);
const { ast } = transformFromAstSync(sourceAst, src, babelConfig);
// Generate the function map before we transform the AST to
// ensure we aren't reading from mutated AST.
const functionMap = generateFunctionMap(sourceAst, {
filename,
});
const { ast } = transformFromAstSync(sourceAst, src, babelConfig);
return {

@@ -50,0 +58,0 @@ ast: nullthrows(ast),

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc