mirror of
https://github.com/zhigang1992/react-native.git
synced 2026-04-23 11:57:46 +08:00
Updates from Mon Mar 2
- [ReactNative] Move merge & mergeInto from downstream to vendor | Christopher Chedeau - [ReactNative] Replace all the call sites of mergeInto by Object.assign | Christopher Chedeau - [WIP] Migrated View Managers over to new architecture | Nick Lockwood - [ReactNative] Replace all the call sites of copyProperties by Object.assign | Christopher Chedeau - [ReactNative] Migrate navigator.geolocation to open source | Christopher Chedeau - [ReactNative] Remove README.md, LICENSE and .travis.yml from fbobjc | Christopher Chedeau - [react-packager] Better transform errors | Amjad Masad - [React Native][react-packager] Fix test runner and fialing tests | Amjad Masad
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
var transformer = require('../packager/transformer.js');
|
||||
|
||||
function transformSource(src) {
|
||||
return transformer.transform(null, src).code;
|
||||
function transformSource(src, filename) {
|
||||
return transformer.transform(src, filename).code;
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
@@ -15,7 +15,7 @@ module.exports = {
|
||||
}
|
||||
|
||||
try {
|
||||
return transformSource(src);
|
||||
return transformSource(src, fileName);
|
||||
} catch(e) {
|
||||
throw new Error('\nError transforming file:\n js/' +
|
||||
(fileName.split('/js/')[1] || fileName) + ':' + e.lineNumber + ': \'' +
|
||||
|
||||
Reference in New Issue
Block a user