server.node.js 646 B

1234567891011121314151617
  1. 'use strict';
  2. var l, s;
  3. if (process.env.NODE_ENV === 'production') {
  4. l = require('./cjs/react-dom-server-legacy.node.production.min.js');
  5. s = require('./cjs/react-dom-server.node.production.min.js');
  6. } else {
  7. l = require('./cjs/react-dom-server-legacy.node.development.js');
  8. s = require('./cjs/react-dom-server.node.development.js');
  9. }
  10. exports.version = l.version;
  11. exports.renderToString = l.renderToString;
  12. exports.renderToStaticMarkup = l.renderToStaticMarkup;
  13. exports.renderToNodeStream = l.renderToNodeStream;
  14. exports.renderToStaticNodeStream = l.renderToStaticNodeStream;
  15. exports.renderToPipeableStream = s.renderToPipeableStream;