Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Summary: See background in #2759. Before this change, the `relay-compiler` binary pulls in `lodash`: ``` dist/relay-compiler/bin/relay-compiler 23734:module.exports = require("lodash/clone"); 26487:module.exports = require("lodash/uniq"); 27035:module.exports = require("lodash/isPlainObject"); 27041:module.exports = require("lodash/isRegExp"); 28413:module.exports = require("lodash/isInteger"); 28419:module.exports = require("lodash/repeat"); ``` And, only these files in `dist/` reference `lodash`: ``` $ rg lodash dist/ -l dist/relay-compiler/relay-compiler.js dist/relay-compiler/relay-compiler.min.js dist/relay-compiler/bin/relay-compiler ``` After this change, no files in `dist/` contain references to `lodash`. This seems consistent with what's contained in Relay packages before they were upgraded to Babel 7 (where the `@` was added) in #2536. Pull Request resolved: #2764 Reviewed By: alunyov Differential Revision: D15793295 Pulled By: kassens fbshipit-source-id: 14e9cc6d83a57d6853d8e41e82296d15f27750b2
- Loading branch information