From 0c04acaf8955d3f754ec894abfc7586cbf3220dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Markb=C3=A5ge?= Date: Mon, 20 Jan 2020 16:06:01 -0800 Subject: [PATCH] Remove FB specific build (#17875) I moved unstable_SuspenseList internally. We don't need the FB build. I plan on also removing the ReactDOM fb specific entry. We shouldn't add any more FB specific internals nor APIs. If they're experimental they should go onto the experimental builds to avoid too many permutations. --- packages/react/index.fb.js | 14 -------------- packages/react/src/ReactFB.js | 15 --------------- 2 files changed, 29 deletions(-) delete mode 100644 packages/react/index.fb.js delete mode 100644 packages/react/src/ReactFB.js diff --git a/packages/react/index.fb.js b/packages/react/index.fb.js deleted file mode 100644 index 2c1a4ec79b78d..0000000000000 --- a/packages/react/index.fb.js +++ /dev/null @@ -1,14 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */ - -'use strict'; - -const ReactFB = require('./src/ReactFB'); - -// TODO: decide on the top-level export form. -// This is hacky but makes it work with both Rollup and Jest. -module.exports = ReactFB.default || ReactFB; diff --git a/packages/react/src/ReactFB.js b/packages/react/src/ReactFB.js deleted file mode 100644 index 9c4f974010259..0000000000000 --- a/packages/react/src/ReactFB.js +++ /dev/null @@ -1,15 +0,0 @@ -/** - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - * - * @flow - */ - -import React from './React'; - -// TODO: Temporary alias until we update the callers downstream. -React.unstable_SuspenseList = React.SuspenseList; - -export default React;