From afe7f3c558d28cccc8fcb86fe889136fee583331 Mon Sep 17 00:00:00 2001 From: Garvit Khatri Date: Thu, 6 Jun 2024 15:19:33 +0530 Subject: [PATCH] make it a esm module instead of common js --- src/package.json | 1 + src/tsconfig.json | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/package.json b/src/package.json index 47d1287e..a021fa9f 100644 --- a/src/package.json +++ b/src/package.json @@ -1,6 +1,7 @@ { "name": "@pimlico/alto", "version": "0.0.1", + "type": "module", "description": "A performant and modular ERC-4337 Bundler written in Typescript", "repository": "https://github.com/pimlicolabs/alto.git", "author": "Pimlico", diff --git a/src/tsconfig.json b/src/tsconfig.json index b3850408..3608325b 100644 --- a/src/tsconfig.json +++ b/src/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "outDir": "lib", "target": "esnext", - "module": "commonjs", + "module": "ESNext", "esModuleInterop": true, "forceConsistentCasingInFileNames": true, "strict": true, @@ -54,4 +54,4 @@ "tsc-alias": { "resolveFullPaths": true, } -} \ No newline at end of file +}