File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed
Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 33 "version" : " 3.8.16" ,
44 "description" : " A Next.js Top Loading Bar component made using nprogress, works with Next.js 15 and Next.js 14 and React." ,
55 "main" : " dist/index.js" ,
6+ "module" : " dist/index.mjs" ,
67 "types" : " dist/index.d.ts" ,
78 "scripts" : {
89 "build-lib" : " tsup" ,
1112 "typecheck" : " tsc -p tsconfig.json"
1213 },
1314 "exports" : {
14- "." : " ./dist/index.js" ,
15- "./app" : " ./dist/app.js" ,
16- "./pages" : " ./dist/pages.js"
15+ "." : {
16+ "import" : " ./dist/index.mjs" ,
17+ "require" : " ./dist/index.js" ,
18+ "types" : " ./dist/index.d.ts"
19+ },
20+ "./app" : {
21+ "import" : " ./dist/app.mjs" ,
22+ "require" : " ./dist/app.js" ,
23+ "types" : " ./dist/app.d.ts"
24+ },
25+ "./pages" : {
26+ "import" : " ./dist/pages.mjs" ,
27+ "require" : " ./dist/pages.js" ,
28+ "types" : " ./dist/pages.d.ts"
29+ }
1730 },
1831 "funding" : {
1932 "url" : " https://buymeacoffee.com/thesgj"
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ export const tsup: Options = {
77 keepNames : true ,
88 sourcemap : true ,
99 minify : true ,
10- format : [ 'cjs' ] ,
10+ format : [ 'cjs' , 'esm' ] ,
1111} ;
You can’t perform that action at this time.
0 commit comments