Files
react/scripts/rollup/fbjs.js
T
Dominic Gannaway d00cf558dc dev/prod mode WIP
2017-03-07 17:42:00 +00:00

29 lines
1.4 KiB
JavaScript

"use strict";
const { resolve } = require('path');
function getFbjsModuleAliases() {
return {
hyphenateStyleName: resolve('./node_modules/fbjs/lib/hyphenateStyleName.js'),
getUnboundedScrollPosition: resolve('./node_modules/fbjs/lib/getUnboundedScrollPosition.js'),
'fbjs/lib/emptyFunction': resolve('./node_modules/fbjs/lib/emptyFunction.js'),
'fbjs/lib/emptyObject': resolve('./node_modules/fbjs/lib/emptyObject.js'),
camelizeStyleName: resolve('./node_modules/fbjs/lib/camelizeStyleName.js'),
containsNode: resolve('./node_modules/fbjs/lib/containsNode.js'),
shallowEqual: resolve('./node_modules/fbjs/lib/shallowEqual.js'),
getActiveElement: resolve('./node_modules/fbjs/lib/getActiveElement.js'),
focusNode: resolve('./node_modules/fbjs/lib/focusNode.js'),
EventListener: resolve('./node_modules/fbjs/lib/EventListener.js'),
memoizeStringOnly: resolve('./node_modules/fbjs/lib/memoizeStringOnly.js'),
ExecutionEnvironment: resolve('./node_modules/fbjs/lib/ExecutionEnvironment.js'),
'fbjs/lib/warning': resolve('./node_modules/fbjs/lib/warning.js'),
reactProdInvariant: resolve('./src/shared/utils/reactProdInvariant.js'),
'fbjs/lib/invariant': resolve('./node_modules/fbjs/lib/invariant.js'),
'object-assign': resolve('./node_modules/object-assign/index.js'),
};
}
module.exports = {
getFbjsModuleAliases,
};