From 5c2a88a9a1cecd0fefe75c0e9fc1368e199530cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Wed, 10 Aug 2016 18:45:14 -0700 Subject: [PATCH] Build React DOM Fiber package (#7173) This builds a `react-dom-fiber.js` bundle which exposes ReactDOMFiber. This allows early experiments with the new Fiber reconciler. I also expose it in the npm package through `react-dom/fiber`. (cherry picked from commit f7e0db9a181f042c4c7ec55250786ac2e96e40db) --- Gruntfile.js | 12 +++++++ examples/fiber/index.html | 4 +-- grunt/config/browserify.js | 46 ++++++++++++++++++++++++ packages/react-dom/fiber.js | 3 ++ src/renderers/dom/fiber/ReactDOMFiber.js | 21 +++++++++-- 5 files changed, 81 insertions(+), 5 deletions(-) create mode 100644 packages/react-dom/fiber.js diff --git a/Gruntfile.js b/Gruntfile.js index 20df7c9b85239..71f3ffd258f55 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -137,6 +137,16 @@ module.exports = function(grunt) { 'version-check', 'browserify:domServerMin', ]); + grunt.registerTask('build:dom-fiber', [ + 'build-modules', + 'version-check', + 'browserify:domFiber', + ]); + grunt.registerTask('build:dom-fiber-min', [ + 'build-modules', + 'version-check', + 'browserify:domFiberMin', + ]); grunt.registerTask('build:npm-react', [ 'version-check', 'build-modules', @@ -164,6 +174,8 @@ module.exports = function(grunt) { 'browserify:domMin', 'browserify:domServer', 'browserify:domServerMin', + 'browserify:domFiber', + 'browserify:domFiberMin', 'npm-react:release', 'npm-react:pack', 'npm-react-dom:release', diff --git a/examples/fiber/index.html b/examples/fiber/index.html index c50799379495f..c90e7ce246ed1 100644 --- a/examples/fiber/index.html +++ b/examples/fiber/index.html @@ -18,7 +18,7 @@

Fiber Example

- +