Skip to content

Commit ea07e99

Browse files
fix(nuxt): downgrade @nuxt/module-builder (fixes #61)
1 parent 853220e commit ea07e99

File tree

4 files changed

+452
-58
lines changed

4 files changed

+452
-58
lines changed

packages/nuxt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"unlazy": "workspace:*"
5050
},
5151
"devDependencies": {
52-
"@nuxt/module-builder": "^1.0.0-alpha.1",
52+
"@nuxt/module-builder": "^0.8.4",
5353
"@nuxt/schema": "^3.15.4",
5454
"@types/node": "^22.13.8",
5555
"@unocss/nuxt": "^65.5.0",

packages/nuxt/playground/nuxt.config.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ const currentDir = fileURLToPath(new URL('.', import.meta.url))
77
export default defineNuxtConfig({
88
modules: ['@unocss/nuxt', '../src/module'],
99

10+
compatibilityDate: '2025-01-01',
11+
1012
vite: {
1113
// Custom alias for unlazy until Jiti issue is resolved
1214
// https://github.com/unjs/jiti/issues/136
@@ -28,8 +30,4 @@ export default defineNuxtConfig({
2830
imports: {
2931
autoImport: false,
3032
},
31-
32-
typescript: {
33-
shim: false,
34-
},
3533
})

packages/nuxt/src/runtime/components/UnLazyImage.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,9 @@ onBeforeUnmount(() => {
132132
</script>
133133

134134
<template>
135-
<picture v-if="props.sources?.length">
135+
<picture v-if="sources?.length">
136136
<source
137-
v-for="(source, index) in props.sources"
137+
v-for="(source, index) in sources"
138138
:key="index"
139139
:type="source.type"
140140
:data-srcset="source.srcSet"

0 commit comments

Comments
 (0)