Skip to content

Commit

Permalink
DOM named exports
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Feb 27, 2020
1 parent f4ed2aa commit fb86179
Show file tree
Hide file tree
Showing 50 changed files with 2,617 additions and 2,832 deletions.
188 changes: 94 additions & 94 deletions build/bundle-sizes.json

Large diffs are not rendered by default.

31 changes: 10 additions & 21 deletions build/dist/react-dom-server.browser.development.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
'use strict';

(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('react')) :
typeof define === 'function' && define.amd ? define(['react'], factory) :
(global = global || self, global.ReactDOMServer = factory(global.React));
}(this, (function (React) { 'use strict';
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('react')) :
typeof define === 'function' && define.amd ? define(['exports', 'react'], factory) :

This comment has been minimized.

Copy link
@sebmarkbage

sebmarkbage Feb 27, 2020

Author Owner

This is also in 16.13. :)

(global = global || self, factory(global.ReactDOMServer = {}, global.React));
}(this, (function (exports, React) { 'use strict';

// Do not require this module directly! Use normal `invariant` calls with
// template literal strings. The messages will be replaced with error codes
Expand Down Expand Up @@ -4173,23 +4173,12 @@
throw Error( "ReactDOMServer.renderToStaticNodeStream(): The streaming API is not available in the browser. Use ReactDOMServer.renderToStaticMarkup() instead." );
}
}
} // Note: when changing this, also consider https://github.com/facebook/react/issues/11526


var ReactDOMServer = {
renderToString: renderToString,
renderToStaticMarkup: renderToStaticMarkup,
renderToNodeStream: renderToNodeStream,
renderToStaticNodeStream: renderToStaticNodeStream,
version: ReactVersion
};

// TODO: decide on the top-level export form.
// This is hacky but makes it work with both Rollup and Jest


var server_browser = ReactDOMServer.default || ReactDOMServer;
}

return server_browser;
exports.renderToNodeStream = renderToNodeStream;
exports.renderToStaticMarkup = renderToStaticMarkup;
exports.renderToStaticNodeStream = renderToStaticNodeStream;
exports.renderToString = renderToString;
exports.version = ReactVersion;

})));
76 changes: 38 additions & 38 deletions build/dist/react-dom-server.browser.production.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit fb86179

Please sign in to comment.