We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5cb824c commit 064a070Copy full SHA for 064a070
package.json
@@ -7,7 +7,7 @@
7
"types": "lib/index.d.ts",
8
"exports": {
9
".": "./lib/index.js",
10
- "./lib/index.css": "./lib/index.css"
+ "./lib/style.css": "./lib/style.css"
11
},
12
"scripts": {
13
"dev": "vite",
vite.config.ts
@@ -27,21 +27,19 @@ export default defineConfig({
27
lib: {
28
entry: ['src/index.ts'],
29
name: 'vue-lazy-load-image-component',
30
- fileName: 'index',
+ fileName: () => 'index.js',
31
formats: ['es'],
32
33
34
rollupOptions: {
35
- // input: ['src/index.ts']
36
- input: { index: 'src/index.ts' },
+ input: ['src/index.ts'],
37
external: ['vue'],
38
output: {
39
dir: 'lib',
40
globals: {
41
vue: 'Vue',
42
43
format: 'es',
44
- assetFileNames: 'index.[ext]',
45
46
47
0 commit comments