From 5fecc81e6331b575fb5bef60182c45ac60c3466f Mon Sep 17 00:00:00 2001 From: Maarten Zuidhoorn Date: Mon, 16 Oct 2023 10:08:32 +0200 Subject: [PATCH] Revert some changes --- package.json | 4 +++- tsup.config.ts | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index fb455725..db8306ee 100644 --- a/package.json +++ b/package.json @@ -6,12 +6,12 @@ "bugs": { "url": "https://github.com/MetaMask/utils/issues" }, - "sideEffects": false, "repository": { "type": "git", "url": "https://github.com/MetaMask/utils.git" }, "license": "ISC", + "sideEffects": false, "exports": { ".": { "import": "./dist/index.mjs", @@ -20,6 +20,8 @@ }, "./package.json": "./package.json" }, + "main": "./dist/index.js", + "module": "./dist/index.mjs", "types": "./dist/types/index.d.ts", "files": [ "dist" diff --git a/tsup.config.ts b/tsup.config.ts index 979f8d01..618e9921 100644 --- a/tsup.config.ts +++ b/tsup.config.ts @@ -28,7 +28,7 @@ export default defineConfig({ // Enables shimming of `__dirname` and `import.meta.url`, so that they work // in both CommonJS and ESM. // https://tsup.egoist.dev/#inject-cjs-and-esm-shims - shims: false, + shims: true, // Hide unnecessary logs from the console. Warnings and errors will still be // shown.