Skip to content

Commit 6190a87

Browse files
authored
Merge pull request #139 from TheSGJ/revert-132-master
Revert "Add ESM build output and improve package exports for better module compatibility"
2 parents 4b7cd94 + 965e412 commit 6190a87

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

package.json

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"version": "3.9.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",
76
"types": "dist/index.d.ts",
87
"scripts": {
98
"build-lib": "tsup",
@@ -12,21 +11,9 @@
1211
"typecheck": "tsc -p tsconfig.json"
1312
},
1413
"exports": {
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-
}
14+
".": "./dist/index.js",
15+
"./app": "./dist/app.js",
16+
"./pages": "./dist/pages.js"
3017
},
3118
"funding": {
3219
"url": "https://buymeacoffee.com/thesgj"

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ export const tsup: Options = {
77
keepNames: true,
88
sourcemap: true,
99
minify: true,
10-
format: ['cjs', 'esm'],
10+
format: ['cjs'],
1111
};

0 commit comments

Comments
 (0)