File tree 3 files changed +20
-9
lines changed
3 files changed +20
-9
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,6 @@ package-lock.json
10
10
11
11
# dist file
12
12
es
13
- esm
14
13
lib
15
14
dist
16
15
/site
Original file line number Diff line number Diff line change @@ -10,4 +10,18 @@ yarn add @vant/lazyload
10
10
11
11
## Usage
12
12
13
+ ``` js
14
+ import { createApp } from ' vue' ;
15
+ import { LazyLoad } from ' @vant/lazyload' ;
16
+
17
+ const app = createApp ();
18
+ app .use (LazyLoad);
19
+ ```
20
+
21
+ ## API
22
+
13
23
see: https://github.com/hilongjw/vue-lazyload
24
+
25
+ ## TODO
26
+
27
+ support TypeScript.
Original file line number Diff line number Diff line change 2
2
"name" : " @vant/lazyload" ,
3
3
"version" : " 1.0.0" ,
4
4
"description" : " " ,
5
- "main" : " lib /index.js" ,
6
- "module" : " esm/index.js" ,
7
- "types" : " lib /index.d.ts" ,
5
+ "main" : " dist/cjs /index.js" ,
6
+ "module" : " dist/ esm/index.js" ,
7
+ "types" : " dist /index.d.ts" ,
8
8
"publishConfig" : {
9
9
"access" : " public" ,
10
10
"registry" : " https://registry.npmjs.org/"
11
11
},
12
12
"files" : [
13
- " es" ,
14
- " lib" ,
15
- " types"
13
+ " dist"
16
14
],
17
15
"scripts" : {
18
- "dev" : " babel src --out-dir esm --watch" ,
19
- "build" : " babel src --out-dir esm && BABEL_MODULE=commonjs babel src --out-dir lib " ,
16
+ "dev" : " babel src --out-dir dist/ esm --watch" ,
17
+ "build" : " babel src --out-dir dist/ esm && BABEL_MODULE=commonjs babel src --out-dir dist/cjs " ,
20
18
"release" : " npm run build && release-it"
21
19
},
22
20
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments