File tree Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Expand file tree Collapse file tree 3 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export const enableUseEffectEventHook = __EXPERIMENTAL__;
110
110
// Test in www before enabling in open source.
111
111
// Enables DOM-server to stream its instruction set as data-attributes
112
112
// (handled with an MutationObserver) instead of inline-scripts
113
- export const enableFizzExternalRuntime = true ;
113
+ export const enableFizzExternalRuntime = __EXPERIMENTAL__ ;
114
114
115
115
export const alwaysThrottleRetries = true ;
116
116
Original file line number Diff line number Diff line change @@ -323,7 +323,7 @@ const bundles = [
323
323
324
324
/******* React DOM Fizz Server External Runtime *******/
325
325
{
326
- bundleTypes : [ BROWSER_SCRIPT ] ,
326
+ bundleTypes : __EXPERIMENTAL__ ? [ BROWSER_SCRIPT ] : [ ] ,
327
327
moduleType : RENDERER ,
328
328
entry : 'react-dom/unstable_server-external-runtime' ,
329
329
outputPath : 'unstable_server-external-runtime.js' ,
Original file line number Diff line number Diff line change @@ -223,7 +223,14 @@ function filterOutEntrypoints(name) {
223
223
// Let's remove it.
224
224
files . splice ( i , 1 ) ;
225
225
i -- ;
226
- unlinkSync ( `build/node_modules/${ name } /${ filename } ` ) ;
226
+ try {
227
+ unlinkSync ( `build/node_modules/${ name } /${ filename } ` ) ;
228
+ } catch ( err ) {
229
+ // If the file doesn't exist we can just move on. Otherwise throw the halt the build
230
+ if ( err . code !== 'ENOENT' ) {
231
+ throw err ;
232
+ }
233
+ }
227
234
changed = true ;
228
235
// Remove it from the exports field too if it exists.
229
236
if ( exportsJSON ) {
You can’t perform that action at this time.
0 commit comments