File tree Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Expand file tree Collapse file tree 3 files changed +10
-14
lines changed Original file line number Diff line number Diff line change 24
24
"engines" : {
25
25
"node" : " >=12.22"
26
26
},
27
- "main" : " dist/AsyncCssPlugin .js" ,
27
+ "main" : " dist/index .js" ,
28
28
"files" : [
29
29
" /dist/" ,
30
30
" !/**/*.map" ,
Original file line number Diff line number Diff line change
1
+ // https://github.com/andreashuber69/async-css-plugin/blob/develop/README.md#----async-css-plugin
2
+
3
+ // eslint-disable-next-line import/no-default-export
4
+ export { default } from "./AsyncCssPlugin.ts" ;
5
+
6
+ export type * from "./Options.ts" ;
Original file line number Diff line number Diff line change @@ -7,23 +7,13 @@ import dts from "vite-plugin-dts";
7
7
export default defineConfig ( {
8
8
build : {
9
9
lib : {
10
- entry : [ "src/AsyncCssPlugin .ts" ] ,
11
- fileName : "AsyncCssPlugin " ,
10
+ entry : [ "src/index .ts" ] ,
11
+ fileName : "index " ,
12
12
formats : [ "cjs" ] ,
13
13
} ,
14
14
outDir : "dist" ,
15
- rollupOptions : {
16
- input : {
17
- AsyncCssPlugin : "src/AsyncCssPlugin.ts" ,
18
- } ,
19
- } ,
20
15
sourcemap : true ,
21
16
ssr : true ,
22
17
} ,
23
- plugins : [
24
- dts ( {
25
- rollupTypes : true ,
26
- tsconfigPath : "tsconfig.json" ,
27
- } ) ,
28
- ] ,
18
+ plugins : [ dts ( { rollupTypes : true } ) ] ,
29
19
} ) ;
You can’t perform that action at this time.
0 commit comments