This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Plugin, PluginRenderScripts } from "$fresh/server.ts"; | |
import createEmotionServer from '@emotion/server/create-instance' | |
import { cache } from '@emotion/css' | |
const { extractCritical } = createEmotionServer(cache) | |
const main = `data:application/javascript,import hydrate from "${new URL("./main.ts", import.meta.url).href | |
}";export default function(state) { hydrate(state); }`; | |
const emotion: Plugin = { |