Skip to content

Commit c7a2dce

Browse files
authored
Disable JS urls at build level for www (#15230)
This will be on by default in open source for the next major.
1 parent fb6b508 commit c7a2dce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/shared/forks/ReactFeatureFlags.www.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export const {
1616
debugRenderPhaseSideEffectsForStrictMode,
1717
replayFailedUnitOfWorkWithInvokeGuardedCallback,
1818
warnAboutDeprecatedLifecycles,
19-
disableJavaScriptURLs,
2019
disableYielding,
2120
disableInputAttributeSyncing,
2221
warnAboutShorthandPropertyCollision,
@@ -39,6 +38,8 @@ export const enableStableConcurrentModeAPIs = false;
3938

4039
export const enableSuspenseServerRenderer = true;
4140

41+
export const disableJavaScriptURLs = true;
42+
4243
// I've chosen to make this a static flag instead of a dynamic flag controlled
4344
// by a GK so that it doesn't increase bundle size. It should still be easy
4445
// to rollback by reverting the commit that turns this on.

0 commit comments

Comments
 (0)