babel-plugin-react-native-web
Advanced tools
Comparing version 0.3.3 to 0.4.0
{ | ||
"name": "babel-plugin-react-native-web", | ||
"version": "0.3.3", | ||
"version": "0.4.0", | ||
"description": "Babel plugin for React Native for Web", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -95,3 +95,6 @@ const getDistLocation = importName => | ||
t.identifier(identifier.value.name), | ||
t.callExpression(t.identifier('require'), [t.stringLiteral(distLocation)]) | ||
t.memberExpression( | ||
t.callExpression(t.identifier('require'), [t.stringLiteral(distLocation)]), | ||
t.identifier('default') | ||
) | ||
) | ||
@@ -109,5 +112,8 @@ ]); | ||
t.identifier(name), | ||
t.callExpression(t.identifier('require'), [ | ||
t.stringLiteral('react-native-web/dist/index') | ||
]) | ||
t.memberExpression( | ||
t.callExpression(t.identifier('require'), [ | ||
t.stringLiteral('react-native-web/dist/index') | ||
]), | ||
t.identifier('default') | ||
) | ||
) | ||
@@ -114,0 +120,0 @@ ]); |
Sorry, the diff of this file is not supported yet
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
11605
168