Skip to content

Commit 064a070

Browse files
committed
fix: update models
1 parent 5cb824c commit 064a070

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"types": "lib/index.d.ts",
88
"exports": {
99
".": "./lib/index.js",
10-
"./lib/index.css": "./lib/index.css"
10+
"./lib/style.css": "./lib/style.css"
1111
},
1212
"scripts": {
1313
"dev": "vite",

vite.config.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,19 @@ export default defineConfig({
2727
lib: {
2828
entry: ['src/index.ts'],
2929
name: 'vue-lazy-load-image-component',
30-
fileName: 'index',
30+
fileName: () => 'index.js',
3131
formats: ['es'],
3232
},
3333

3434
rollupOptions: {
35-
// input: ['src/index.ts']
36-
input: { index: 'src/index.ts' },
35+
input: ['src/index.ts'],
3736
external: ['vue'],
3837
output: {
3938
dir: 'lib',
4039
globals: {
4140
vue: 'Vue',
4241
},
4342
format: 'es',
44-
assetFileNames: 'index.[ext]',
4543
},
4644
},
4745
},

0 commit comments

Comments
 (0)