From fc7fe8b29f2ad613aba385771c641667438e7acd Mon Sep 17 00:00:00 2001 From: Andrew Bulat Date: Thu, 28 Nov 2024 04:54:08 +0000 Subject: [PATCH] Fix incorrect `moduleResolution` in `tsconfig.json` for package tests `moduleResolution` must be set to `node` as `resolveJsonModule: true` cannot be used otherwise. --- test/package/browser/template/src/tsconfig.json | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/package/browser/template/src/tsconfig.json b/test/package/browser/template/src/tsconfig.json index e280baa6de..1208197e70 100644 --- a/test/package/browser/template/src/tsconfig.json +++ b/test/package/browser/template/src/tsconfig.json @@ -1,10 +1,13 @@ { - "include": ["**/*.ts", "**/*.tsx"], + "include": [ + "**/*.ts", + "**/*.tsx" + ], "compilerOptions": { "resolveJsonModule": true, "esModuleInterop": true, "module": "esnext", - "moduleResolution": "bundler", + "moduleResolution": "node", "jsx": "react-jsx" } }