Skip to content

Commit a1cced1

Browse files
committed
chore: perform all release tasks
1 parent 160cfff commit a1cced1

File tree

4 files changed

+42
-39
lines changed

4 files changed

+42
-39
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727

2828
## Setup
2929

30-
**IMPORTANT NOTE:** This module requires new hooks that works with nuxt `2.5.0` or `nuxt-edge` only.
31-
3230
1. Add `@nuxtjs/emotion` dependency to your project
3331

3432
```bash

playground/app.vue

Lines changed: 38 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,51 @@
11
<template>
22
<div>
3-
<div :class="styles.root">Nuxt module playground!</div>
4-
<button :class="styles.button">Hello World</button>
3+
<div :class="styles.root">
4+
Nuxt module playground!
5+
</div>
6+
<button :class="styles.button">
7+
Hello World
8+
</button>
59
</div>
610
</template>
711

812
<script lang="ts" setup>
9-
import { css } from "@emotion/css";
13+
import { css } from '@emotion/css'
1014
1115
const styles = reactive({
1216
root: css({
13-
paddingInline: "16px",
14-
paddingBlock: "12px",
15-
fontSize: "1rem",
16-
fontFamily: "system ui",
17-
color: "white",
18-
borderRadius: "20px",
19-
backgroundColor: "indigo",
17+
paddingInline: '16px',
18+
paddingBlock: '12px',
19+
fontSize: '1rem',
20+
fontFamily: 'system ui',
21+
color: 'white',
22+
borderRadius: '20px',
23+
backgroundColor: 'indigo'
2024
}),
2125
button: css({
22-
padding: "13px 18px",
23-
position: "relative",
24-
display: "inline-flex",
25-
alignItems: "center",
26-
justifyContent: "center",
27-
whiteSpace: "pre",
28-
borderRadius: "9999px",
29-
borderWidth: "2px",
30-
borderColor: "transparent",
31-
backgroundColor: "rgb(245 245 240)",
32-
fontSize: "15px",
33-
fontWeight: "400",
34-
lineHeight: "21px",
35-
letterSpacing: ".011em",
36-
cursor: "pointer",
26+
padding: '13px 18px',
27+
position: 'relative',
28+
display: 'inline-flex',
29+
alignItems: 'center',
30+
justifyContent: 'center',
31+
whiteSpace: 'pre',
32+
borderRadius: '9999px',
33+
borderWidth: '2px',
34+
borderColor: 'transparent',
35+
backgroundColor: 'rgb(245 245 240)',
36+
fontSize: '15px',
37+
fontWeight: '400',
38+
lineHeight: '21px',
39+
letterSpacing: '.011em',
40+
cursor: 'pointer',
3741
transitionProperty:
38-
"color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter",
39-
transitionTimingFunction: "cubic-bezier(.4,0,.2,1)",
40-
transitionDuration: ".15s",
41-
"&:hover": {
42-
backgroundColor: "rgb(79 77 77)",
43-
color: "rgb(245 245 240)",
44-
},
45-
}),
46-
});
42+
'color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter',
43+
transitionTimingFunction: 'cubic-bezier(.4,0,.2,1)',
44+
transitionDuration: '.15s',
45+
'&:hover': {
46+
backgroundColor: 'rgb(79 77 77)',
47+
color: 'rgb(245 245 240)'
48+
}
49+
})
50+
})
4751
</script>

src/module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import {
99
declare global {
1010
interface Window {
1111
/** Serialized SSR IDs for emotion */
12-
$emotionSSRIds: string[]
12+
$emotionSSRIds: string[];
1313
}
1414
}
1515

@@ -37,7 +37,7 @@ export default defineNuxtModule({
3737
* Register emotion plugin
3838
*/
3939
const { resolve } = createResolver(import.meta.url)
40-
const runtimeDir = fileURLToPath(new URL('./runtime', import.meta.url))
40+
const runtimeDir = resolve('./runtime')
4141
nuxt.options.build.transpile.push(runtimeDir)
4242
addServerPlugin(resolve(runtimeDir, 'emotion.server'))
4343
addPlugin(resolve(runtimeDir, 'emotion.client'))

tsconfig.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
{
22
"compilerOptions": {
3-
"moduleResolution": "Node"
3+
"moduleResolution": "Node",
4+
"module": "node16"
45
}
56
}

0 commit comments

Comments
 (0)