From f14624e21b9b5bff2b7c7b5912ae413dd316bfc8 Mon Sep 17 00:00:00 2001 From: Jongsun Suh Date: Fri, 8 Dec 2023 16:31:10 -0800 Subject: [PATCH] Set typescript compiler options: `module` to `ES2020`, `moduleResolution` to `Bundler` --- tsconfig.packages.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tsconfig.packages.json b/tsconfig.packages.json index d802dd977a2..3d17c305365 100644 --- a/tsconfig.packages.json +++ b/tsconfig.packages.json @@ -3,8 +3,8 @@ "composite": true, "esModuleInterop": true, "lib": ["ES2020", "DOM"], - "module": "Node16", - "moduleResolution": "Node16", + "module": "ES2020", + "moduleResolution": "Bundler", /** * Here we ensure that TypeScript resolves `@metamask/*` imports to the * uncompiled source code for packages that live in this repo. @@ -13,7 +13,7 @@ * `jest.config.packages.js`. */ "paths": { - "@metamask/*": ["../*/src"] + "@metamask/*": ["../*/src", "../node_modules/@metamask/*/src"] }, "strict": true, "target": "es6"