From 208ac1270bc1acd1ecd1bf80ea60135e955fbb43 Mon Sep 17 00:00:00 2001 From: Vincent Hardouin Date: Mon, 5 Feb 2024 08:49:16 +0100 Subject: [PATCH] feat: add tsconfig --- tsconfig.json | 11 +++++++++++ vite.config.js | 2 +- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 tsconfig.json diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..1827869 --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,11 @@ +{ + "exclude": [ + "*.js" + ], + "compilerOptions": { + "target": "es2022", + "isolatedModules": true, + "moduleResolution": "Bundler", + "resolveJsonModule": true + } +} diff --git a/vite.config.js b/vite.config.js index 510fcc7..b93477f 100644 --- a/vite.config.js +++ b/vite.config.js @@ -1,4 +1,4 @@ -import { resolve } from 'path' +import { resolve } from 'node:path' import { defineConfig } from 'vite' export default defineConfig({