diff --git a/.eslintrc.json b/.eslintrc.json index 5ce3c9c46..cfdf02469 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -28,7 +28,7 @@ "@typescript-eslint/no-misused-promises": ["error", { "checksVoidReturn": false }] }, "parserOptions": { - "project": ["./tsconfig.json"] + "project": ["./tsconfig.node.json"] }, "overrides": [ { @@ -47,7 +47,7 @@ "@typescript-eslint/no-unsafe-enum-comparison": "off" }, "parserOptions": { - "project": ["./tsconfig.json"] + "project": ["./tsconfig.node.json"] } }, { diff --git a/tsconfig.json b/tsconfig.json index 7a87dddce..3d1bbb76a 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -35,7 +35,7 @@ }, "baseUrl": "src" }, - "include": ["src", ".eslintrc.js", "jest.config.ts", "./node_modules/decentraland-builder-scripts/types.d.ts"], + "include": ["src", ".eslintrc.js", "vite.config.ts", "jest.config.ts", "./node_modules/decentraland-builder-scripts/types.d.ts"], "exclude": ["src/modules/editor/ecs.js", "src/ecsScene/scene.ts", "dist", "node_modules"], "references": [{ "path": "./tsconfig.node.json" }] } diff --git a/vite.config.ts b/vite.config.ts index 33d1a64ed..475f50b3d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,14 +1,14 @@ import react from '@vitejs/plugin-react-swc' import { nodePolyfills } from 'vite-plugin-node-polyfills' import path from 'path' -import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite' +import { defineConfig, loadEnv } from 'vite' // https://vitejs.dev/config/ export default defineConfig(({ mode }) => { const envVariables = loadEnv(mode, process.cwd()) // eslint-disable-next-line @typescript-eslint/no-unsafe-return return { - plugins: [react(), nodePolyfills(), splitVendorChunkPlugin()], + plugins: [react(), nodePolyfills()], // Required because the CatalystClient tries to access it define: { // eslint-disable-next-line @typescript-eslint/naming-convention @@ -62,7 +62,7 @@ export default defineConfig(({ mode }) => { commonjsOptions: { transformMixedEsModules: true }, - sourcemap: true + sourcemap: false }, base: envVariables.VITE_BASE_URL }