Skip to content

Instantly share code, notes, and snippets.

@notpushkin
Created March 16, 2016 14:01
Show Gist options
  • Select an option

  • Save notpushkin/fa68da6925b44f567d63 to your computer and use it in GitHub Desktop.

Select an option

Save notpushkin/fa68da6925b44f567d63 to your computer and use it in GitHub Desktop.
rollup({
plugins: [
nodeResolve(),
commonjs({
namedExports: {
"node_modules/react/react.js": [
// deprecated APIs:
"findDOMNode",
"render",
"unmountComponentAtNode",
"renderToString",
"renderToStaticMarkup",
// from ReactIsomorphic:
"Children",
"Component",
"createElement",
"cloneElement",
"isValidElement",
"PropTypes",
"createClass",
"createFactory",
"createMixin",
"DOM",
"version",
"__spread",
],
"node_modules/react-dom/index.js": [
"findDOMNode",
"render",
"unmountComponentAtNode",
"version",
"unstable_batchedUpdates",
"unstable_renderSubtreeIntoContainer",
],
}
})
]
}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment