This allows consumers to directly require a single Rep file
if needed (e.g. the inspector only needs elementNode or textNode).
In order to make this work, the requires for react-dom-factories
and prop-types needed to be changed to the in-tree modules.
We also needed to modified the reps jest config, as well as the
babel config so we can run tests and still generate the reps bundle.
Finally, the dom-node-constants is modified to not use define as
it's not used as an AMD module.
Differential Revision: https://phabricator.services.mozilla.com/D54680
--HG--
extra : moz-landing-system : lando
Since we are now using "devtools/shared/dom-node-constants" in Reps, the JSONView
was failing. Add "devtools/shared" to the requirejs configuration to allow the JSONView
to require the script, and wrap the dom-node-constants export in `define` since the view
expect the modules to be AMD.
MozReview-Commit-ID: CXQZ0YzrWGV
--HG--
extra : rebase_source : 963c1082509aef006ee5f5cfaa347d958a67447f