Skip to content

Commit d6bdabd

Browse files
committed
Revert some changes
1 parent befdf2d commit d6bdabd

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
"bugs": {
77
"url": "https://github.com/MetaMask/utils/issues"
88
},
9-
"sideEffects": false,
109
"repository": {
1110
"type": "git",
1211
"url": "https://github.com/MetaMask/utils.git"
1312
},
1413
"license": "ISC",
14+
"sideEffects": false,
1515
"exports": {
1616
".": {
1717
"import": "./dist/index.mjs",
@@ -20,6 +20,8 @@
2020
},
2121
"./package.json": "./package.json"
2222
},
23+
"main": "./dist/index.js",
24+
"module": "./dist/index.mjs",
2325
"types": "./dist/types/index.d.ts",
2426
"files": [
2527
"dist"

tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export default defineConfig({
2828
// Enables shimming of `__dirname` and `import.meta.url`, so that they work
2929
// in both CommonJS and ESM.
3030
// https://tsup.egoist.dev/#inject-cjs-and-esm-shims
31-
shims: false,
31+
shims: true,
3232

3333
// Hide unnecessary logs from the console. Warnings and errors will still be
3434
// shown.

0 commit comments

Comments
 (0)