File tree 3 files changed +15
-0
lines changed
3 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -37,6 +37,15 @@ import { Newsletter } from "./newsletter";
37
37
import { Curriculum } from "./curriculum" ;
38
38
import { useGA } from "./ga-context" ;
39
39
40
+ if ( ! ( "adoptedStyleSheets" in Document . prototype ) ) {
41
+ // Polyfill for CSSStyleSheet() constructor etc, mainly for Safari < 16.4.
42
+ // Required for webpack css-loader exportType "css-style-sheet".
43
+ // Note: Async import is a compromise, as top-level await requires Safari 15+.
44
+ import (
45
+ /* webpackChunkName: "construct-style-sheets-polyfill" */ "construct-style-sheets-polyfill"
46
+ ) ;
47
+ }
48
+
40
49
const AllFlaws = React . lazy ( ( ) => import ( "./flaws" ) ) ;
41
50
const Translations = React . lazy ( ( ) => import ( "./translations" ) ) ;
42
51
const WritersHomepage = React . lazy ( ( ) => import ( "./writers-homepage" ) ) ;
Original file line number Diff line number Diff line change 103
103
"compression" : " ^1.8.0" ,
104
104
"compute-baseline" : " ^0.3.0" ,
105
105
"concurrently" : " ^9.1.2" ,
106
+ "construct-style-sheets-polyfill" : " ^3.1.0" ,
106
107
"cookie" : " ^0.7.2" ,
107
108
"cookie-parser" : " ^1.4.7" ,
108
109
"cross-spawn" : " ^7.0.6" ,
Original file line number Diff line number Diff line change @@ -5412,6 +5412,11 @@ connect-history-api-fallback@^2.0.0:
5412
5412
resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8"
5413
5413
integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA==
5414
5414
5415
+ construct-style-sheets-polyfill@^3.1.0:
5416
+ version "3.1.0"
5417
+ resolved "https://registry.yarnpkg.com/construct-style-sheets-polyfill/-/construct-style-sheets-polyfill-3.1.0.tgz#c490abd79efdb359fafa62ec14ea55232be0eecf"
5418
+ integrity sha512-HBLKP0chz8BAY6rBdzda11c3wAZeCZ+kIG4weVC2NM3AXzxx09nhe8t0SQNdloAvg5GLuHwq/0SPOOSPvtCcKw==
5419
+
5415
5420
[email protected] , content-disposition@^0.5.2:
5416
5421
version "0.5.4"
5417
5422
resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe"
You can’t perform that action at this time.
0 commit comments