UNPKG
@unlazy/nuxt
Version:
latest (2.0.1)
2.0.1
2.0.0
1.1.0
1.0.0
0.12.4
0.12.3
0.12.2
0.12.1
0.12.0
0.11.8
0.11.7
0.11.6
0.11.5
0.11.4
0.11.3
0.11.2
0.11.1
0.11.0
0.10.5
0.10.4
0.10.3
0.10.2
0.10.1
0.10.0
0.9.5
0.9.4
0.9.3
0.9.2
0.9.1
0.9.0
0.8.9
0.8.8
0.8.7
0.8.6
0.8.5
0.8.4
0.8.3
0.8.2
0.8.1
0.8.0
0.7.6
0.7.5
0.7.4
0.7.2
0.7.1
0.7.0
0.6.4
0.6.3
0.6.2
0.6.1
Nuxt lazy loading module for placeholder images
unlazy.byjohann.dev
johannschopplich/unlazy
@unlazy/nuxt
/
dist
/
module.cjs
6 lines
(5 loc)
•
227 B
JavaScript
View Raw
1
2
3
4
5
6
module
.
exports
=
function
(
...args
) {
return
import
(
'./module.mjs'
).
then
(
m
=>
m.
default
.
call
(
this
, ...args)) }
const
_meta =
module
.
exports
.
meta
=
require
(
'./module.json'
)
module
.
exports
.
getMeta
=
() =>
Promise
.
resolve
(_meta)