Skip to content

Commit 59f00e1

Browse files
committed
Preinits should support a nonce option (#26744)
Currently there is no way to provide a nonce when using `ReactDOM.preinit(..., { as: 'script' })` This PR adds `nonce?: string` as an option While implementing this PR I added a test to also show you can pass `integrity`. This test isn't directly related to the nonce change. DiffTrain build for [b12bea6](b12bea6)
1 parent db78d9b commit 59f00e1

25 files changed

+4476
-3455
lines changed

compiled/facebook-www/REVISION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
f87e97a0a67fa7cfd7e6f2ec985621c0e825cb23
1+
b12bea62d9cfd9a925f28cb2c93daeda3865a64e

compiled/facebook-www/React-dev.modern.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if (
2727
}
2828
"use strict";
2929

30-
var ReactVersion = "18.3.0-www-modern-bcc00dd5";
30+
var ReactVersion = "18.3.0-www-modern-3898c4ac";
3131

3232
// ATTENTION
3333
// When adding new symbols to this file,

0 commit comments

Comments
 (0)