2017-04-05 16:47:29 +01:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
|
|
const bundleTypes = {
|
|
|
|
|
UMD_DEV: 'UMD_DEV',
|
|
|
|
|
UMD_PROD: 'UMD_PROD',
|
2018-09-13 17:44:08 -07:00
|
|
|
UMD_PROFILING: 'UMD_PROFILING',
|
2017-04-05 16:47:29 +01:00
|
|
|
NODE_DEV: 'NODE_DEV',
|
|
|
|
|
NODE_PROD: 'NODE_PROD',
|
2018-06-11 13:16:27 -07:00
|
|
|
NODE_PROFILING: 'NODE_PROFILING',
|
2018-04-18 13:16:50 -07:00
|
|
|
FB_WWW_DEV: 'FB_WWW_DEV',
|
|
|
|
|
FB_WWW_PROD: 'FB_WWW_PROD',
|
2018-06-26 13:28:41 -07:00
|
|
|
FB_WWW_PROFILING: 'FB_WWW_PROFILING',
|
2018-04-18 13:16:50 -07:00
|
|
|
RN_OSS_DEV: 'RN_OSS_DEV',
|
|
|
|
|
RN_OSS_PROD: 'RN_OSS_PROD',
|
2018-06-11 13:16:27 -07:00
|
|
|
RN_OSS_PROFILING: 'RN_OSS_PROFILING',
|
2018-04-18 13:16:50 -07:00
|
|
|
RN_FB_DEV: 'RN_FB_DEV',
|
|
|
|
|
RN_FB_PROD: 'RN_FB_PROD',
|
2018-06-26 13:28:41 -07:00
|
|
|
RN_FB_PROFILING: 'RN_FB_PROFILING',
|
2017-04-05 16:47:29 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const UMD_DEV = bundleTypes.UMD_DEV;
|
|
|
|
|
const UMD_PROD = bundleTypes.UMD_PROD;
|
2018-09-13 17:44:08 -07:00
|
|
|
const UMD_PROFILING = bundleTypes.UMD_PROFILING;
|
2017-04-05 16:47:29 +01:00
|
|
|
const NODE_DEV = bundleTypes.NODE_DEV;
|
|
|
|
|
const NODE_PROD = bundleTypes.NODE_PROD;
|
2018-06-11 13:16:27 -07:00
|
|
|
const NODE_PROFILING = bundleTypes.NODE_PROFILING;
|
2018-04-18 13:16:50 -07:00
|
|
|
const FB_WWW_DEV = bundleTypes.FB_WWW_DEV;
|
|
|
|
|
const FB_WWW_PROD = bundleTypes.FB_WWW_PROD;
|
2018-06-26 13:28:41 -07:00
|
|
|
const FB_WWW_PROFILING = bundleTypes.FB_WWW_PROFILING;
|
2018-04-18 13:16:50 -07:00
|
|
|
const RN_OSS_DEV = bundleTypes.RN_OSS_DEV;
|
|
|
|
|
const RN_OSS_PROD = bundleTypes.RN_OSS_PROD;
|
2018-06-11 13:16:27 -07:00
|
|
|
const RN_OSS_PROFILING = bundleTypes.RN_OSS_PROFILING;
|
2018-04-18 13:16:50 -07:00
|
|
|
const RN_FB_DEV = bundleTypes.RN_FB_DEV;
|
|
|
|
|
const RN_FB_PROD = bundleTypes.RN_FB_PROD;
|
2018-06-26 13:28:41 -07:00
|
|
|
const RN_FB_PROFILING = bundleTypes.RN_FB_PROFILING;
|
2017-04-05 16:47:29 +01:00
|
|
|
|
2017-10-11 14:29:26 -04:00
|
|
|
const moduleTypes = {
|
|
|
|
|
ISOMORPHIC: 'ISOMORPHIC',
|
|
|
|
|
RENDERER: 'RENDERER',
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
RENDERER_UTILS: 'RENDERER_UTILS',
|
2017-10-11 14:29:26 -04:00
|
|
|
RECONCILER: 'RECONCILER',
|
2018-05-19 11:29:11 +01:00
|
|
|
NON_FIBER_RENDERER: 'NON_FIBER_RENDERER',
|
2017-10-11 14:29:26 -04:00
|
|
|
};
|
|
|
|
|
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
// React
|
2017-10-11 14:29:26 -04:00
|
|
|
const ISOMORPHIC = moduleTypes.ISOMORPHIC;
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
// Individual renderers. They bundle the reconciler. (e.g. ReactDOM)
|
2017-10-11 14:29:26 -04:00
|
|
|
const RENDERER = moduleTypes.RENDERER;
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
// Helper packages that access specific renderer's internals. (e.g. TestUtils)
|
|
|
|
|
const RENDERER_UTILS = moduleTypes.RENDERER_UTILS;
|
|
|
|
|
// Standalone reconciler for third-party renderers.
|
2017-10-11 14:29:26 -04:00
|
|
|
const RECONCILER = moduleTypes.RECONCILER;
|
2018-05-19 11:29:11 +01:00
|
|
|
// Non-Fiber implementations like SSR and Shallow renderers.
|
|
|
|
|
const NON_FIBER_RENDERER = moduleTypes.NON_FIBER_RENDERER;
|
2017-10-11 14:29:26 -04:00
|
|
|
|
2017-04-05 16:47:29 +01:00
|
|
|
const bundles = [
|
|
|
|
|
/******* Isomorphic *******/
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
2018-09-13 17:44:08 -07:00
|
|
|
UMD_PROFILING,
|
2018-04-18 13:16:50 -07:00
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
2018-09-01 12:00:00 -07:00
|
|
|
FB_WWW_PROFILING,
|
2018-04-18 13:16:50 -07:00
|
|
|
],
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleType: ISOMORPHIC,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react',
|
|
|
|
|
global: 'React',
|
|
|
|
|
externals: [],
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/******* React DOM *******/
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
2018-09-13 17:44:08 -07:00
|
|
|
UMD_PROFILING,
|
2018-04-18 13:16:50 -07:00
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
2018-06-11 13:16:27 -07:00
|
|
|
NODE_PROFILING,
|
2018-04-18 13:16:50 -07:00
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
2018-06-26 13:28:41 -07:00
|
|
|
FB_WWW_PROFILING,
|
2018-04-18 13:16:50 -07:00
|
|
|
],
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleType: RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-dom',
|
|
|
|
|
global: 'ReactDOM',
|
2018-09-01 12:00:00 -07:00
|
|
|
externals: ['react'],
|
2017-04-19 16:45:31 -07:00
|
|
|
},
|
2017-10-25 02:55:00 +03:00
|
|
|
|
2018-11-30 11:52:34 +00:00
|
|
|
/******* React Fire *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
UMD_PROFILING,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
NODE_PROFILING,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
FB_WWW_PROFILING,
|
|
|
|
|
],
|
|
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-dom/unstable-fire',
|
|
|
|
|
global: 'ReactFire',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/******* Test Utils *******/
|
2017-04-19 16:45:31 -07:00
|
|
|
{
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
moduleType: RENDERER_UTILS,
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [FB_WWW_DEV, NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-dom/test-utils',
|
|
|
|
|
global: 'ReactTestUtils',
|
|
|
|
|
externals: ['react', 'react-dom'],
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
2017-10-25 02:55:00 +03:00
|
|
|
|
2017-07-11 18:27:26 -07:00
|
|
|
/* React DOM internals required for react-native-web (e.g., to shim native events from react-dom) */
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
Reorganize code structure (#11288)
* Move files and tests to more meaningful places
* Fix the build
Now that we import reconciler via react-reconciler, I needed to make a few tweaks.
* Update sizes
* Move @preventMunge directive to FB header
* Revert unintentional change
* Fix Flow coverage
I forgot to @flow-ify those files. This uncovered some issues.
* Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a rat in a cage
Pulling minimum wage
Prettier, I love you but you're bringing me down
Prettier, you're safer and you're wasting my time
Our records all show you were filthy but fine
But they shuttered your stores
When you opened the doors
To the cops who were bored once they'd run out of crime
Prettier, you're perfect, oh, please don't change a thing
Your mild billionaire mayor's now convinced he's a king
So the boring collect
I mean all disrespect
In the neighborhood bars I'd once dreamt I would drink
Prettier, I love you but you're freaking me out
There's a ton of the twist but we're fresh out of shout
Like a death in the hall
That you hear through your wall
Prettier, I love you but you're freaking me out
Prettier, I love you but you're bringing me down
Prettier, I love you but you're bringing me down
Like a death of the heart
Jesus, where do I start?
But you're still the one pool where I'd happily drown
And oh! Take me off your mailing list
For kids who think it still exists
Yes, for those who think it still exists
Maybe I'm wrong and maybe you're right
Maybe I'm wrong and maybe you're right
Maybe you're right, maybe I'm wrong
And just maybe you're right
And oh! Maybe mother told you true
And there'll always be somebody there for you
And you'll never be alone
But maybe she's wrong and maybe I'm right
And just maybe she's wrong
Maybe she's wrong and maybe I'm right
And if so, here's this song!
2017-10-19 19:50:24 +01:00
|
|
|
moduleType: RENDERER_UTILS,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-dom/unstable-native-dependencies',
|
|
|
|
|
global: 'ReactDOMUnstableNativeDependencies',
|
|
|
|
|
externals: ['react', 'react-dom'],
|
2017-07-11 18:27:26 -07:00
|
|
|
},
|
2017-04-05 16:47:29 +01:00
|
|
|
|
|
|
|
|
/******* React DOM Server *******/
|
2017-05-17 17:19:11 -07:00
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
2018-05-19 11:29:11 +01:00
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-dom/server.browser',
|
|
|
|
|
global: 'ReactDOMServer',
|
2018-09-01 12:00:00 -07:00
|
|
|
externals: ['react'],
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
|
|
|
|
|
2017-06-24 22:31:42 -07:00
|
|
|
{
|
2017-06-28 16:13:58 -07:00
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
2018-05-19 11:29:11 +01:00
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-dom/server.node',
|
2018-09-01 12:00:00 -07:00
|
|
|
externals: ['react', 'stream'],
|
2017-06-24 22:31:42 -07:00
|
|
|
},
|
|
|
|
|
|
2018-11-30 11:38:22 -08:00
|
|
|
/******* React DOM Fizz Server *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
|
|
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-dom/unstable-fizz.browser',
|
|
|
|
|
global: 'ReactDOMFizzServer',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
|
|
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-dom/unstable-fizz.node',
|
|
|
|
|
global: 'ReactDOMFizzServer',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
},
|
|
|
|
|
|
2017-04-05 16:47:29 +01:00
|
|
|
/******* React ART *******/
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleType: RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-art',
|
|
|
|
|
global: 'ReactART',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
babel: opts =>
|
|
|
|
|
Object.assign({}, opts, {
|
|
|
|
|
// Include JSX
|
|
|
|
|
presets: opts.presets.concat([require.resolve('babel-preset-react')]),
|
|
|
|
|
}),
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/******* React Native *******/
|
2018-04-18 13:16:50 -07:00
|
|
|
{
|
2018-06-26 13:28:41 -07:00
|
|
|
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
|
2018-04-18 13:16:50 -07:00
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-native-renderer',
|
|
|
|
|
global: 'ReactNativeRenderer',
|
|
|
|
|
externals: [
|
|
|
|
|
'ExceptionsManager',
|
|
|
|
|
'InitializeCore',
|
|
|
|
|
'Platform',
|
|
|
|
|
'RCTEventEmitter',
|
|
|
|
|
'TextInputState',
|
|
|
|
|
'UIManager',
|
2019-04-09 15:10:15 -07:00
|
|
|
'FabricUIManager',
|
2018-04-18 13:16:50 -07:00
|
|
|
'deepDiffer',
|
|
|
|
|
'deepFreezeAndThrowOnMutationInDev',
|
|
|
|
|
'flattenStyle',
|
|
|
|
|
'ReactNativeViewConfigRegistry',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2017-04-05 16:47:29 +01:00
|
|
|
{
|
2018-06-11 13:16:27 -07:00
|
|
|
bundleTypes: [RN_OSS_DEV, RN_OSS_PROD, RN_OSS_PROFILING],
|
2017-10-25 02:55:00 +03:00
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-native-renderer',
|
|
|
|
|
global: 'ReactNativeRenderer',
|
2017-04-05 16:47:29 +01:00
|
|
|
externals: [
|
|
|
|
|
'ExceptionsManager',
|
|
|
|
|
'InitializeCore',
|
2017-08-31 15:27:54 -07:00
|
|
|
'Platform',
|
2017-04-05 16:47:29 +01:00
|
|
|
'RCTEventEmitter',
|
|
|
|
|
'TextInputState',
|
|
|
|
|
'UIManager',
|
2019-04-09 15:10:15 -07:00
|
|
|
'FabricUIManager',
|
2017-04-05 16:47:29 +01:00
|
|
|
'deepDiffer',
|
|
|
|
|
'deepFreezeAndThrowOnMutationInDev',
|
|
|
|
|
'flattenStyle',
|
2018-04-09 20:05:57 -07:00
|
|
|
'ReactNativeViewConfigRegistry',
|
2017-04-05 16:47:29 +01:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2018-01-22 09:58:35 -08:00
|
|
|
/******* React Native Fabric *******/
|
2018-04-18 13:16:50 -07:00
|
|
|
{
|
2018-06-26 13:28:41 -07:00
|
|
|
bundleTypes: [RN_FB_DEV, RN_FB_PROD, RN_FB_PROFILING],
|
2018-04-18 13:16:50 -07:00
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-native-renderer/fabric',
|
|
|
|
|
global: 'ReactFabric',
|
|
|
|
|
externals: [
|
|
|
|
|
'ExceptionsManager',
|
|
|
|
|
'InitializeCore',
|
|
|
|
|
'Platform',
|
|
|
|
|
'RCTEventEmitter',
|
|
|
|
|
'TextInputState',
|
|
|
|
|
'UIManager',
|
|
|
|
|
'FabricUIManager',
|
|
|
|
|
'deepDiffer',
|
|
|
|
|
'deepFreezeAndThrowOnMutationInDev',
|
|
|
|
|
'flattenStyle',
|
|
|
|
|
'ReactNativeViewConfigRegistry',
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2018-01-22 09:58:35 -08:00
|
|
|
{
|
2018-06-11 13:16:27 -07:00
|
|
|
bundleTypes: [RN_OSS_DEV, RN_OSS_PROD, RN_OSS_PROFILING],
|
2018-01-22 09:58:35 -08:00
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-native-renderer/fabric',
|
|
|
|
|
global: 'ReactFabric',
|
|
|
|
|
externals: [
|
|
|
|
|
'ExceptionsManager',
|
|
|
|
|
'InitializeCore',
|
|
|
|
|
'Platform',
|
|
|
|
|
'RCTEventEmitter',
|
|
|
|
|
'TextInputState',
|
|
|
|
|
'UIManager',
|
|
|
|
|
'FabricUIManager',
|
|
|
|
|
'deepDiffer',
|
|
|
|
|
'deepFreezeAndThrowOnMutationInDev',
|
|
|
|
|
'flattenStyle',
|
2018-04-09 20:05:57 -07:00
|
|
|
'ReactNativeViewConfigRegistry',
|
2018-01-22 09:58:35 -08:00
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
2017-04-05 16:47:29 +01:00
|
|
|
/******* React Test Renderer *******/
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [FB_WWW_DEV, NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleType: RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-test-renderer',
|
|
|
|
|
global: 'ReactTestRenderer',
|
2019-02-28 12:54:47 -08:00
|
|
|
externals: ['react', 'scheduler', 'scheduler/unstable_mock'],
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
2017-10-25 02:55:00 +03:00
|
|
|
|
2017-04-19 16:45:31 -07:00
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [FB_WWW_DEV, NODE_DEV, NODE_PROD, UMD_DEV, UMD_PROD],
|
2018-05-19 11:29:11 +01:00
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-test-renderer/shallow',
|
|
|
|
|
global: 'ReactShallowRenderer',
|
2019-02-28 12:54:47 -08:00
|
|
|
externals: ['react', 'scheduler', 'scheduler/unstable_mock'],
|
2017-04-19 16:45:31 -07:00
|
|
|
},
|
2017-04-05 16:47:29 +01:00
|
|
|
|
2017-11-23 17:44:58 +00:00
|
|
|
/******* React Noop Renderer (used for tests) *******/
|
2017-04-05 16:47:29 +01:00
|
|
|
{
|
2017-11-23 17:44:58 +00:00
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleType: RENDERER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-noop-renderer',
|
|
|
|
|
global: 'ReactNoopRenderer',
|
2019-02-28 12:54:47 -08:00
|
|
|
externals: ['react', 'scheduler', 'scheduler/unstable_mock', 'expect'],
|
2018-05-14 13:57:33 +01:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/******* React Noop Persistent Renderer (used for tests) *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-noop-renderer/persistent',
|
|
|
|
|
global: 'ReactNoopRendererPersistent',
|
2019-02-28 12:54:47 -08:00
|
|
|
externals: ['react', 'scheduler', 'expect'],
|
2017-04-05 16:47:29 +01:00
|
|
|
},
|
2017-10-11 14:29:26 -04:00
|
|
|
|
2018-11-30 11:38:22 -08:00
|
|
|
/******* React Noop Server Renderer (used for tests) *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: RENDERER,
|
|
|
|
|
entry: 'react-noop-renderer/server',
|
|
|
|
|
global: 'ReactNoopRendererServer',
|
2019-02-28 12:54:47 -08:00
|
|
|
externals: ['react', 'scheduler', 'expect'],
|
2018-11-30 11:38:22 -08:00
|
|
|
},
|
|
|
|
|
|
2017-10-11 14:29:26 -04:00
|
|
|
/******* React Reconciler *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: RECONCILER,
|
2017-10-25 02:55:00 +03:00
|
|
|
entry: 'react-reconciler',
|
|
|
|
|
global: 'ReactReconciler',
|
2018-09-01 12:00:00 -07:00
|
|
|
externals: ['react'],
|
2018-02-05 16:56:21 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/******* React Persistent Reconciler *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: RECONCILER,
|
|
|
|
|
entry: 'react-reconciler/persistent',
|
|
|
|
|
global: 'ReactPersistentReconciler',
|
2018-09-01 12:00:00 -07:00
|
|
|
externals: ['react'],
|
2017-10-11 14:29:26 -04:00
|
|
|
},
|
2017-10-25 22:23:55 +03:00
|
|
|
|
2018-11-30 11:38:22 -08:00
|
|
|
/******* React Stream *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: RECONCILER,
|
|
|
|
|
entry: 'react-stream',
|
|
|
|
|
global: 'ReactStream',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
},
|
|
|
|
|
|
2017-11-29 00:57:22 +08:00
|
|
|
/******* Reflection *******/
|
|
|
|
|
{
|
|
|
|
|
moduleType: RENDERER_UTILS,
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
entry: 'react-reconciler/reflection',
|
|
|
|
|
global: 'ReactFiberTreeReflection',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
2018-02-11 14:08:40 -08:00
|
|
|
/******* React Is *******/
|
|
|
|
|
{
|
2018-04-18 13:16:50 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
],
|
2018-02-11 14:08:40 -08:00
|
|
|
moduleType: ISOMORPHIC,
|
|
|
|
|
entry: 'react-is',
|
|
|
|
|
global: 'ReactIs',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
2018-02-15 16:38:15 -08:00
|
|
|
|
2018-11-05 10:02:59 -08:00
|
|
|
/******* React Debug Tools *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: ISOMORPHIC,
|
|
|
|
|
entry: 'react-debug-tools',
|
|
|
|
|
global: 'ReactDebugTools',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
2018-10-01 09:07:40 -06:00
|
|
|
/******* React Cache (experimental) *******/
|
2018-02-15 16:38:15 -08:00
|
|
|
{
|
2018-10-03 17:09:17 +03:00
|
|
|
bundleTypes: [
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
],
|
2018-02-15 16:38:15 -08:00
|
|
|
moduleType: ISOMORPHIC,
|
2018-10-01 09:07:40 -06:00
|
|
|
entry: 'react-cache',
|
|
|
|
|
global: 'ReactCache',
|
2018-10-23 14:38:51 -07:00
|
|
|
externals: ['react', 'scheduler'],
|
2018-02-15 16:38:15 -08:00
|
|
|
},
|
2018-03-13 13:59:09 -07:00
|
|
|
|
|
|
|
|
/******* createComponentWithSubscriptions (experimental) *******/
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD],
|
|
|
|
|
moduleType: ISOMORPHIC,
|
|
|
|
|
entry: 'create-subscription',
|
|
|
|
|
global: 'createSubscription',
|
|
|
|
|
externals: ['react'],
|
|
|
|
|
},
|
2018-04-19 09:29:08 -07:00
|
|
|
|
|
|
|
|
/******* React Scheduler (experimental) *******/
|
|
|
|
|
{
|
2018-09-01 12:00:00 -07:00
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
|
2018-04-19 09:29:08 -07:00
|
|
|
moduleType: ISOMORPHIC,
|
2018-09-19 01:26:28 +01:00
|
|
|
entry: 'scheduler',
|
|
|
|
|
global: 'Scheduler',
|
2018-04-19 09:29:08 -07:00
|
|
|
externals: [],
|
|
|
|
|
},
|
2018-08-17 10:16:05 -06:00
|
|
|
|
Add new mock build of Scheduler with flush, yield API (#14964)
* Add new mock build of Scheduler with flush, yield API
Test environments need a way to take control of the Scheduler queue and
incrementally flush work. Our current tests accomplish this either using
dynamic injection, or by using Jest's fake timers feature. Both of these
options are fragile and rely too much on implementation details.
In this new approach, we have a separate build of Scheduler that is
specifically designed for test environments. We mock the default
implementation like we would any other module; in our case, via Jest.
This special build has methods like `flushAll` and `yieldValue` that
control when work is flushed. These methods are based on equivalent
methods we've been using to write incremental React tests. Eventually
we may want to migrate the React tests to interact with the mock
Scheduler directly, instead of going through the host config like we
currently do.
For now, I'm using our custom static injection infrastructure to create
the two builds of Scheduler — a default build for DOM (which falls back
to a naive timer based implementation), and the new mock build. I did it
this way because it allows me to share most of the implementation, which
isn't specific to a host environment — e.g. everything related to the
priority queue. It may be better to duplicate the shared code instead,
especially considering that future environments (like React Native) may
have entirely forked implementations. I'd prefer to wait until the
implementation stabilizes before worrying about that, but I'm open to
changing this now if we decide it's important enough.
* Mock Scheduler in bundle tests, too
* Remove special case by making regex more restrictive
2019-02-26 20:51:17 -08:00
|
|
|
/******* React Scheduler Mock (experimental) *******/
|
2018-10-03 18:37:41 -06:00
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
|
|
|
|
|
moduleType: ISOMORPHIC,
|
Add new mock build of Scheduler with flush, yield API (#14964)
* Add new mock build of Scheduler with flush, yield API
Test environments need a way to take control of the Scheduler queue and
incrementally flush work. Our current tests accomplish this either using
dynamic injection, or by using Jest's fake timers feature. Both of these
options are fragile and rely too much on implementation details.
In this new approach, we have a separate build of Scheduler that is
specifically designed for test environments. We mock the default
implementation like we would any other module; in our case, via Jest.
This special build has methods like `flushAll` and `yieldValue` that
control when work is flushed. These methods are based on equivalent
methods we've been using to write incremental React tests. Eventually
we may want to migrate the React tests to interact with the mock
Scheduler directly, instead of going through the host config like we
currently do.
For now, I'm using our custom static injection infrastructure to create
the two builds of Scheduler — a default build for DOM (which falls back
to a naive timer based implementation), and the new mock build. I did it
this way because it allows me to share most of the implementation, which
isn't specific to a host environment — e.g. everything related to the
priority queue. It may be better to duplicate the shared code instead,
especially considering that future environments (like React Native) may
have entirely forked implementations. I'd prefer to wait until the
implementation stabilizes before worrying about that, but I'm open to
changing this now if we decide it's important enough.
* Mock Scheduler in bundle tests, too
* Remove special case by making regex more restrictive
2019-02-26 20:51:17 -08:00
|
|
|
entry: 'scheduler/unstable_mock',
|
|
|
|
|
global: 'SchedulerMock',
|
2018-12-01 17:26:12 -08:00
|
|
|
externals: [],
|
2018-10-03 18:37:41 -06:00
|
|
|
},
|
|
|
|
|
|
Add new mock build of Scheduler with flush, yield API (#14964)
* Add new mock build of Scheduler with flush, yield API
Test environments need a way to take control of the Scheduler queue and
incrementally flush work. Our current tests accomplish this either using
dynamic injection, or by using Jest's fake timers feature. Both of these
options are fragile and rely too much on implementation details.
In this new approach, we have a separate build of Scheduler that is
specifically designed for test environments. We mock the default
implementation like we would any other module; in our case, via Jest.
This special build has methods like `flushAll` and `yieldValue` that
control when work is flushed. These methods are based on equivalent
methods we've been using to write incremental React tests. Eventually
we may want to migrate the React tests to interact with the mock
Scheduler directly, instead of going through the host config like we
currently do.
For now, I'm using our custom static injection infrastructure to create
the two builds of Scheduler — a default build for DOM (which falls back
to a naive timer based implementation), and the new mock build. I did it
this way because it allows me to share most of the implementation, which
isn't specific to a host environment — e.g. everything related to the
priority queue. It may be better to duplicate the shared code instead,
especially considering that future environments (like React Native) may
have entirely forked implementations. I'd prefer to wait until the
implementation stabilizes before worrying about that, but I'm open to
changing this now if we decide it's important enough.
* Mock Scheduler in bundle tests, too
* Remove special case by making regex more restrictive
2019-02-26 20:51:17 -08:00
|
|
|
/******* Jest React (experimental) *******/
|
2018-12-01 13:03:19 -08:00
|
|
|
{
|
|
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV, FB_WWW_PROD],
|
|
|
|
|
moduleType: ISOMORPHIC,
|
Add new mock build of Scheduler with flush, yield API (#14964)
* Add new mock build of Scheduler with flush, yield API
Test environments need a way to take control of the Scheduler queue and
incrementally flush work. Our current tests accomplish this either using
dynamic injection, or by using Jest's fake timers feature. Both of these
options are fragile and rely too much on implementation details.
In this new approach, we have a separate build of Scheduler that is
specifically designed for test environments. We mock the default
implementation like we would any other module; in our case, via Jest.
This special build has methods like `flushAll` and `yieldValue` that
control when work is flushed. These methods are based on equivalent
methods we've been using to write incremental React tests. Eventually
we may want to migrate the React tests to interact with the mock
Scheduler directly, instead of going through the host config like we
currently do.
For now, I'm using our custom static injection infrastructure to create
the two builds of Scheduler — a default build for DOM (which falls back
to a naive timer based implementation), and the new mock build. I did it
this way because it allows me to share most of the implementation, which
isn't specific to a host environment — e.g. everything related to the
priority queue. It may be better to duplicate the shared code instead,
especially considering that future environments (like React Native) may
have entirely forked implementations. I'd prefer to wait until the
implementation stabilizes before worrying about that, but I'm open to
changing this now if we decide it's important enough.
* Mock Scheduler in bundle tests, too
* Remove special case by making regex more restrictive
2019-02-26 20:51:17 -08:00
|
|
|
entry: 'jest-react',
|
|
|
|
|
global: 'JestReact',
|
2018-12-01 17:26:12 -08:00
|
|
|
externals: [],
|
2018-12-01 13:03:19 -08:00
|
|
|
},
|
|
|
|
|
|
2018-10-23 12:35:56 -07:00
|
|
|
/******* ESLint Plugin for Hooks (proposal) *******/
|
|
|
|
|
{
|
|
|
|
|
// TODO: it's awkward to create a bundle for this
|
|
|
|
|
// but if we don't, the package won't get copied.
|
|
|
|
|
// We also can't create just DEV bundle because
|
|
|
|
|
// it contains a NODE_ENV check inside.
|
|
|
|
|
// We should probably tweak our build process
|
|
|
|
|
// to allow "raw" packages that don't get bundled.
|
2018-11-08 18:44:08 -08:00
|
|
|
bundleTypes: [NODE_DEV, NODE_PROD, FB_WWW_DEV],
|
2018-10-23 12:35:56 -07:00
|
|
|
moduleType: ISOMORPHIC,
|
|
|
|
|
entry: 'eslint-plugin-react-hooks',
|
2018-11-09 10:22:18 -08:00
|
|
|
global: 'ESLintPluginReactHooks',
|
2018-10-23 12:35:56 -07:00
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
2018-08-17 10:16:05 -06:00
|
|
|
{
|
2018-09-01 12:00:00 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
FB_WWW_PROFILING,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
NODE_PROFILING,
|
|
|
|
|
],
|
2018-08-17 10:16:05 -06:00
|
|
|
moduleType: ISOMORPHIC,
|
2018-09-19 01:26:28 +01:00
|
|
|
entry: 'scheduler/tracing',
|
|
|
|
|
global: 'SchedulerTracing',
|
2018-08-17 10:16:05 -06:00
|
|
|
externals: [],
|
|
|
|
|
},
|
2019-03-19 15:12:45 +00:00
|
|
|
|
|
|
|
|
/******* React Events (experimental) *******/
|
|
|
|
|
{
|
2019-03-27 16:42:17 -07:00
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
2019-03-19 15:12:45 +00:00
|
|
|
moduleType: ISOMORPHIC,
|
|
|
|
|
entry: 'react-events',
|
|
|
|
|
global: 'ReactEvents',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
2019-03-27 16:42:17 -07:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2019-04-25 02:01:09 +01:00
|
|
|
entry: 'react-events/Press',
|
2019-03-27 16:42:17 -07:00
|
|
|
global: 'ReactEventsPress',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2019-04-25 02:01:09 +01:00
|
|
|
entry: 'react-events/Hover',
|
2019-03-27 16:42:17 -07:00
|
|
|
global: 'ReactEventsHover',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
2019-03-29 10:31:18 -07:00
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2019-04-25 02:01:09 +01:00
|
|
|
entry: 'react-events/Focus',
|
2019-03-29 10:31:18 -07:00
|
|
|
global: 'ReactEventsFocus',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2019-04-25 02:01:09 +01:00
|
|
|
entry: 'react-events/FocusScope',
|
|
|
|
|
global: 'ReactEventsFocusScope',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
|
|
|
|
entry: 'react-events/Swipe',
|
2019-03-29 10:31:18 -07:00
|
|
|
global: 'ReactEventsSwipe',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
bundleTypes: [
|
|
|
|
|
UMD_DEV,
|
|
|
|
|
UMD_PROD,
|
|
|
|
|
NODE_DEV,
|
|
|
|
|
NODE_PROD,
|
|
|
|
|
FB_WWW_DEV,
|
|
|
|
|
FB_WWW_PROD,
|
|
|
|
|
],
|
|
|
|
|
moduleType: NON_FIBER_RENDERER,
|
2019-04-25 02:01:09 +01:00
|
|
|
entry: 'react-events/Drag',
|
2019-03-29 10:31:18 -07:00
|
|
|
global: 'ReactEventsDrag',
|
|
|
|
|
externals: [],
|
|
|
|
|
},
|
2017-04-05 16:47:29 +01:00
|
|
|
];
|
|
|
|
|
|
2017-09-14 01:24:31 +01:00
|
|
|
// Based on deep-freeze by substack (public domain)
|
|
|
|
|
function deepFreeze(o) {
|
|
|
|
|
Object.freeze(o);
|
|
|
|
|
Object.getOwnPropertyNames(o).forEach(function(prop) {
|
|
|
|
|
if (
|
|
|
|
|
o[prop] !== null &&
|
|
|
|
|
(typeof o[prop] === 'object' || typeof o[prop] === 'function') &&
|
|
|
|
|
!Object.isFrozen(o[prop])
|
|
|
|
|
) {
|
|
|
|
|
deepFreeze(o[prop]);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
return o;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Don't accidentally mutate config as part of the build
|
|
|
|
|
deepFreeze(bundles);
|
|
|
|
|
|
2017-04-05 16:47:29 +01:00
|
|
|
module.exports = {
|
|
|
|
|
bundleTypes,
|
2017-10-11 14:29:26 -04:00
|
|
|
moduleTypes,
|
2017-04-05 16:47:29 +01:00
|
|
|
bundles,
|
|
|
|
|
};
|