fix: docs islands not hydrated on safari 12 (#1837)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import "../polyfills.ts";
|
||||
import {
|
||||
Component,
|
||||
ComponentChildren,
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
// Polyfill for old safari versions
|
||||
if (typeof globalThis === "undefined") {
|
||||
// @ts-ignore polyfill
|
||||
window.globalThis = window;
|
||||
}
|
||||
@@ -3,5 +3,8 @@ import twindConfig from "./twind.config.ts";
|
||||
import { defineConfig } from "$fresh/server.ts";
|
||||
|
||||
export default defineConfig({
|
||||
build: {
|
||||
target: "safari12",
|
||||
},
|
||||
plugins: [twindPlugin(twindConfig)],
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user