Don't special case performanceNow
Summary: The previous version of `performanceNow` used to reassign to a `require(...)` alias, which our inline requires transform guarded against. Before the update to React 0.14, we were pulling `performanceNow` from a hardcoded `react-tools` version (b4e74e38e4/src/shared/vendor/performance/performanceNow.js
), so we couldn't just fix the file and had to special case it. Now that we've updated to React 0.14, `performanceNow` is pulled from fbjs and no longer needs to be special cased.
public
Reviewed By: cpojer
Differential Revision: D2634940
fb-gh-sync-id: 7085cde3179c04f9ecfd87bdd472b19e370ee73c
This commit is contained in:
parent
53d20d54b4
commit
c16574a0b4
|
@ -17,11 +17,7 @@ function transform(src, filename, options) {
|
|||
options = options || {};
|
||||
const plugins = [];
|
||||
|
||||
if (
|
||||
options.inlineRequires &&
|
||||
// (TODO: balpert, cpojer): Remove this once react is updated to 0.14
|
||||
!filename.endsWith('performanceNow.js')
|
||||
) {
|
||||
if (options.inlineRequires) {
|
||||
plugins.push({
|
||||
position: 'after',
|
||||
transformer: inlineRequires,
|
||||
|
|
Loading…
Reference in New Issue