ssr-emotion-react 1.0.0-beta.0 → 1.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -99,7 +99,7 @@ In Astro, Island components (`client:*`) get the best of both worlds.
99
99
 
100
100
  ### Why this is powerful
101
101
 
102
- Because the Emotion runtime remains active inside Islands, you can use standard React/Preact patterns to handle dynamic styles without any special APIs.
102
+ Because the Emotion runtime remains active inside Islands, you can use standard React patterns to handle dynamic styles without any special APIs.
103
103
 
104
104
  ### Example: Hydration-aware Styling
105
105
 
@@ -1,2 +1,5 @@
1
1
  import { createRequire } from 'module';const require = createRequire(import.meta.url);
2
- import s from"@vitejs/plugin-react";function i(){return{name:"ssr-emotion-react",hooks:{"astro:config:setup":({addRenderer:t,updateConfig:r,config:o})=>{t({name:"ssr-emotion-react",serverEntrypoint:"ssr-emotion-react/astro/render",clientEntrypoint:"ssr-emotion-react/astro/client"});let n=o.vite?.plugins?.some(e=>e&&(e.name==="vite:react-babel"||e.name==="vite:react-jsx"));r({vite:{plugins:n?[]:[s()],ssr:{external:["@emotion/css","@emotion/server"]}}})}}}}export{i as default};
2
+ import a from"@vitejs/plugin-react";function c(){return{name:"ssr-emotion-react",hooks:{"astro:config:setup":({addRenderer:s,updateConfig:o,injectScript:n,config:t,command:i})=>{s({name:"ssr-emotion-react",serverEntrypoint:"ssr-emotion-react/astro/render",clientEntrypoint:"ssr-emotion-react/astro/client"});let r=t.vite?.plugins?.some(e=>e&&(e.name==="vite:react-babel"||e.name==="vite:react-jsx"))||t.integrations?.some(e=>e.name==="@astrojs/react");i==="dev"&&!r&&n("before-hydration",`
3
+ window.$RefreshReg$ = window.$RefreshReg$ || (() => {});
4
+ window.$RefreshSig$ = window.$RefreshSig$ || (() => (type) => type);
5
+ `),o({vite:{plugins:r?[]:[a({fastRefresh:!1})],ssr:{external:["@emotion/css","@emotion/server"]}}})}}}}export{c as default};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ssr-emotion-react",
3
- "version": "1.0.0-beta.0",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "A natural and powerful Zero-Runtime CSS-in-JS solution for React",
5
5
  "author": "uniho",
6
6
  "license": "MIT",