Skip to content

Commit 5886bfc

Browse files
committed
remove perf_hooks externals
1 parent 550fb61 commit 5886bfc

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

scripts/rollup/bundles.js

+11-11
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ const bundles = [
275275
global: 'ReactDOMServer',
276276
minifyWithProdErrorCodes: true,
277277
wrapWithModuleBoundaries: false,
278-
externals: ['react', 'perf_hooks'],
278+
externals: ['react'],
279279
babel: opts =>
280280
Object.assign({}, opts, {
281281
plugins: opts.plugins.concat([
@@ -288,7 +288,7 @@ const bundles = [
288288
moduleType: RENDERER,
289289
entry: 'react-dom/src/server/ReactDOMLegacyServerNode.js',
290290
name: 'react-dom-server-legacy.node',
291-
externals: ['react', 'stream', 'perf_hooks'],
291+
externals: ['react', 'stream'],
292292
minifyWithProdErrorCodes: false,
293293
wrapWithModuleBoundaries: false,
294294
babel: opts =>
@@ -308,7 +308,7 @@ const bundles = [
308308
global: 'ReactDOMServer',
309309
minifyWithProdErrorCodes: true,
310310
wrapWithModuleBoundaries: false,
311-
externals: ['react', 'perf_hooks'],
311+
externals: ['react'],
312312
},
313313
{
314314
bundleTypes: [NODE_DEV, NODE_PROD],
@@ -318,7 +318,7 @@ const bundles = [
318318
global: 'ReactDOMServer',
319319
minifyWithProdErrorCodes: false,
320320
wrapWithModuleBoundaries: false,
321-
externals: ['react', 'util', 'perf_hooks'],
321+
externals: ['react', 'util'],
322322
},
323323
{
324324
bundleTypes: __EXPERIMENTAL__ ? [FB_WWW_DEV, FB_WWW_PROD] : [],
@@ -327,7 +327,7 @@ const bundles = [
327327
global: 'ReactDOMServerStreaming',
328328
minifyWithProdErrorCodes: false,
329329
wrapWithModuleBoundaries: false,
330-
externals: ['react', 'perf_hooks'],
330+
externals: ['react'],
331331
},
332332

333333
/******* React Server DOM Webpack Writer *******/
@@ -338,7 +338,7 @@ const bundles = [
338338
global: 'ReactServerDOMWriter',
339339
minifyWithProdErrorCodes: false,
340340
wrapWithModuleBoundaries: false,
341-
externals: ['react', 'perf_hooks'],
341+
externals: ['react'],
342342
},
343343
{
344344
bundleTypes: [NODE_DEV, NODE_PROD],
@@ -347,7 +347,7 @@ const bundles = [
347347
global: 'ReactServerDOMWriter',
348348
minifyWithProdErrorCodes: false,
349349
wrapWithModuleBoundaries: false,
350-
externals: ['react', 'util', 'perf_hooks'],
350+
externals: ['react', 'util'],
351351
},
352352

353353
/******* React Server DOM Webpack Reader *******/
@@ -358,7 +358,7 @@ const bundles = [
358358
global: 'ReactServerDOMReader',
359359
minifyWithProdErrorCodes: false,
360360
wrapWithModuleBoundaries: false,
361-
externals: ['react', 'perf_hooks'],
361+
externals: ['react'],
362362
},
363363

364364
/******* React Server DOM Webpack Plugin *******/
@@ -369,7 +369,7 @@ const bundles = [
369369
global: 'ReactServerWebpackPlugin',
370370
minifyWithProdErrorCodes: false,
371371
wrapWithModuleBoundaries: false,
372-
externals: ['fs', 'path', 'url', 'neo-async', 'perf_hooks'],
372+
externals: ['fs', 'path', 'url', 'neo-async'],
373373
},
374374

375375
/******* React Server DOM Webpack Node.js Loader *******/
@@ -684,7 +684,7 @@ const bundles = [
684684
global: 'ReactServer',
685685
minifyWithProdErrorCodes: false,
686686
wrapWithModuleBoundaries: false,
687-
externals: ['react', 'perf_hooks'],
687+
externals: ['react'],
688688
},
689689

690690
/******* React Flight Server *******/
@@ -695,7 +695,7 @@ const bundles = [
695695
global: 'ReactFlightServer',
696696
minifyWithProdErrorCodes: false,
697697
wrapWithModuleBoundaries: false,
698-
externals: ['react', 'perf_hooks'],
698+
externals: ['react'],
699699
},
700700

701701
/******* React Flight Client *******/

0 commit comments

Comments
 (0)