diff --git a/babel-preset/configs/main.js b/babel-preset/configs/main.js index da6f64efd..3322812bd 100644 --- a/babel-preset/configs/main.js +++ b/babel-preset/configs/main.js @@ -24,7 +24,7 @@ module.exports = { 'transform-es2015-computed-properties', 'transform-es2015-constants', 'transform-es2015-destructuring', - ['transform-es2015-modules-commonjs', { allowTopLevelThis: true }], + ['transform-es2015-modules-commonjs', { strict: false, allowTopLevelThis: true }], 'transform-es2015-parameters', 'transform-es2015-shorthand-properties', 'transform-es2015-spread', diff --git a/babel-preset/package.json b/babel-preset/package.json index 685e8180c..468d05e8b 100644 --- a/babel-preset/package.json +++ b/babel-preset/package.json @@ -1,6 +1,6 @@ { "name": "babel-preset-react-native", - "version": "1.5.3", + "version": "1.5.4", "description": "Babel preset for React Native applications", "main": "index.js", "repository": "https://github.com/facebook/react-native/tree/master/babel-preset", diff --git a/package.json b/package.json index eff2adc77..107a52a03 100644 --- a/package.json +++ b/package.json @@ -133,7 +133,7 @@ "babel-core": "^6.6.4", "babel-plugin-external-helpers": "^6.5.0", "babel-polyfill": "^6.6.1", - "babel-preset-react-native": "^1.5.2", + "babel-preset-react-native": "1.5.2", "babel-register": "^6.6.0", "babel-types": "^6.6.4", "babylon": "^6.6.4",