Skip to content

Commit

Permalink
remove perf_hooks externals
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff committed Apr 8, 2022
1 parent 550fb61 commit 5886bfc
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions scripts/rollup/bundles.js
Expand Up @@ -275,7 +275,7 @@ const bundles = [
global: 'ReactDOMServer',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
babel: opts =>
Object.assign({}, opts, {
plugins: opts.plugins.concat([
Expand All @@ -288,7 +288,7 @@ const bundles = [
moduleType: RENDERER,
entry: 'react-dom/src/server/ReactDOMLegacyServerNode.js',
name: 'react-dom-server-legacy.node',
externals: ['react', 'stream', 'perf_hooks'],
externals: ['react', 'stream'],
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
babel: opts =>
Expand All @@ -308,7 +308,7 @@ const bundles = [
global: 'ReactDOMServer',
minifyWithProdErrorCodes: true,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},
{
bundleTypes: [NODE_DEV, NODE_PROD],
Expand All @@ -318,7 +318,7 @@ const bundles = [
global: 'ReactDOMServer',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'util', 'perf_hooks'],
externals: ['react', 'util'],
},
{
bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [],
Expand All @@ -327,7 +327,7 @@ const bundles = [
global: 'ReactDOMServerStreaming',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},

/******* React Server DOM Webpack Writer *******/
Expand All @@ -338,7 +338,7 @@ const bundles = [
global: 'ReactServerDOMWriter',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},
{
bundleTypes: [NODE_DEV, NODE_PROD],
Expand All @@ -347,7 +347,7 @@ const bundles = [
global: 'ReactServerDOMWriter',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'util', 'perf_hooks'],
externals: ['react', 'util'],
},

/******* React Server DOM Webpack Reader *******/
Expand All @@ -358,7 +358,7 @@ const bundles = [
global: 'ReactServerDOMReader',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},

/******* React Server DOM Webpack Plugin *******/
Expand All @@ -369,7 +369,7 @@ const bundles = [
global: 'ReactServerWebpackPlugin',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['fs', 'path', 'url', 'neo-async', 'perf_hooks'],
externals: ['fs', 'path', 'url', 'neo-async'],
},

/******* React Server DOM Webpack Node.js Loader *******/
Expand Down Expand Up @@ -684,7 +684,7 @@ const bundles = [
global: 'ReactServer',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},

/******* React Flight Server *******/
Expand All @@ -695,7 +695,7 @@ const bundles = [
global: 'ReactFlightServer',
minifyWithProdErrorCodes: false,
wrapWithModuleBoundaries: false,
externals: ['react', 'perf_hooks'],
externals: ['react'],
},

/******* React Flight Client *******/
Expand Down

0 comments on commit 5886bfc

Please sign in to comment.