babel-preset-expo
Advanced tools
Comparing version 12.0.0-preview.5 to 12.0.0-preview.6
@@ -100,3 +100,3 @@ "use strict"; | ||
// Create a top-level declaration for the extracted function. | ||
const bindingKind = 'const'; | ||
const bindingKind = 'var'; | ||
const functionDeclaration = t.exportNamedDeclaration(t.variableDeclaration(bindingKind, [ | ||
@@ -298,3 +298,3 @@ t.variableDeclarator(extractedIdentifier, extractedFunctionExpr), | ||
// Replace `export default foo = async () => {}` with `const foo = async () => {}` | ||
path.replaceWith(t.variableDeclaration('const', [t.variableDeclarator(id, right)])); | ||
path.replaceWith(t.variableDeclaration('var', [t.variableDeclarator(id, right)])); | ||
// Insert `(() => _registerServerReference(foo, "file:///unknown", "default"))();` | ||
@@ -311,3 +311,3 @@ path.insertAfter(t.exportNamedDeclaration(null, [exportedSpecifier])); | ||
// @ts-expect-error: Transform `export default async () => {}` to `const $$INLINE_ACTION = async () => {}` | ||
path.node.declaration = t.variableDeclaration('const', [ | ||
path.node.declaration = t.variableDeclaration('var', [ | ||
t.variableDeclarator(extractedIdentifier, path.node.declaration), | ||
@@ -314,0 +314,0 @@ ]); |
{ | ||
"name": "babel-preset-expo", | ||
"version": "12.0.0-preview.5", | ||
"version": "12.0.0-preview.6", | ||
"description": "The Babel preset for Expo projects", | ||
@@ -73,3 +73,3 @@ "main": "build/index.js", | ||
}, | ||
"gitHead": "d97ae0839fa465cee14e13ca38f3c6c84c124d82" | ||
"gitHead": "9c8be1c4186d8ff93433db9afa3b6a92fc5f7dcc" | ||
} |
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
123885