diff --git a/package-lock.json b/package-lock.json index fd5789c..d7aa97d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,8 +13,7 @@ "gl-matrix": "^3.4.3", "luxon": "^3.4.4", "satellite.js": "^5.0.0", - "three": "^0.158.0", - "vite-tsconfig-paths": "^4.2.1" + "three": "^0.158.0" }, "devDependencies": { "@types/luxon": "^3.3.4", @@ -1186,7 +1185,7 @@ }, "node_modules/esbuild": { "version": "0.18.20", - "devOptional": true, + "dev": true, "hasInstallScript": true, "license": "MIT", "bin": { @@ -1784,11 +1783,6 @@ "url": "https://github.com/sponsors/sindresorhus" } }, - "node_modules/globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" - }, "node_modules/glsl-tokenizer": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/glsl-tokenizer/-/glsl-tokenizer-2.1.5.tgz", @@ -2398,11 +2392,12 @@ }, "node_modules/ms": { "version": "2.1.2", + "dev": true, "license": "MIT" }, "node_modules/nanoid": { "version": "3.3.6", - "devOptional": true, + "dev": true, "funding": [ { "type": "github", @@ -2632,7 +2627,7 @@ }, "node_modules/picocolors": { "version": "1.0.0", - "devOptional": true, + "dev": true, "license": "ISC" }, "node_modules/picomatch": { @@ -2649,7 +2644,7 @@ }, "node_modules/postcss": { "version": "8.4.29", - "devOptional": true, + "dev": true, "funding": [ { "type": "opencollective", @@ -2826,7 +2821,7 @@ }, "node_modules/rollup": { "version": "3.29.1", - "devOptional": true, + "dev": true, "license": "MIT", "bin": { "rollup": "dist/bin/rollup" @@ -2994,7 +2989,7 @@ }, "node_modules/source-map-js": { "version": "1.0.2", - "devOptional": true, + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.10.0" @@ -3209,25 +3204,6 @@ "typescript": ">=4.2.0" } }, - "node_modules/tsconfck": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", - "integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==", - "bin": { - "tsconfck": "bin/tsconfck.js" - }, - "engines": { - "node": "^14.13.1 || ^16 || >=18" - }, - "peerDependencies": { - "typescript": "^4.3.5 || ^5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, "node_modules/tsconfig-paths": { "version": "3.14.2", "dev": true, @@ -3327,7 +3303,7 @@ "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "devOptional": true, + "dev": true, "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" @@ -3363,7 +3339,7 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", - "devOptional": true, + "dev": true, "dependencies": { "esbuild": "^0.18.10", "postcss": "^8.4.27", @@ -3414,40 +3390,6 @@ } } }, - "node_modules/vite-tsconfig-paths": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.2.1.tgz", - "integrity": "sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==", - "dependencies": { - "debug": "^4.1.1", - "globrex": "^0.1.2", - "tsconfck": "^2.1.0" - }, - "peerDependencies": { - "vite": "*" - }, - "peerDependenciesMeta": { - "vite": { - "optional": true - } - } - }, - "node_modules/vite-tsconfig-paths/node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, "node_modules/which": { "version": "2.0.2", "dev": true, @@ -4370,7 +4312,7 @@ }, "esbuild": { "version": "0.18.20", - "devOptional": true, + "dev": true, "requires": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", @@ -4765,11 +4707,6 @@ "slash": "^3.0.0" } }, - "globrex": { - "version": "0.1.2", - "resolved": "https://registry.npmjs.org/globrex/-/globrex-0.1.2.tgz", - "integrity": "sha512-uHJgbwAMwNFf5mLst7IWLNg14x1CkeqglJb/K3doi4dw6q2IvAAmM/Y81kevy83wP+Sst+nutFTYOGg3d1lsxg==" - }, "glsl-tokenizer": { "version": "2.1.5", "resolved": "https://registry.npmjs.org/glsl-tokenizer/-/glsl-tokenizer-2.1.5.tgz", @@ -5147,11 +5084,12 @@ "dev": true }, "ms": { - "version": "2.1.2" + "version": "2.1.2", + "dev": true }, "nanoid": { "version": "3.3.6", - "devOptional": true + "dev": true }, "natural-compare": { "version": "1.4.0", @@ -5289,7 +5227,7 @@ }, "picocolors": { "version": "1.0.0", - "devOptional": true + "dev": true }, "picomatch": { "version": "2.3.1", @@ -5299,7 +5237,7 @@ }, "postcss": { "version": "8.4.29", - "devOptional": true, + "dev": true, "requires": { "nanoid": "^3.3.6", "picocolors": "^1.0.0", @@ -5400,7 +5338,7 @@ }, "rollup": { "version": "3.29.1", - "devOptional": true, + "dev": true, "requires": { "fsevents": "~2.3.2" } @@ -5493,7 +5431,7 @@ }, "source-map-js": { "version": "1.0.2", - "devOptional": true + "dev": true }, "source-map-support": { "version": "0.5.21", @@ -5644,12 +5582,6 @@ "dev": true, "requires": {} }, - "tsconfck": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/tsconfck/-/tsconfck-2.1.2.tgz", - "integrity": "sha512-ghqN1b0puy3MhhviwO2kGF8SeMDNhEbnKxjK7h6+fvY9JAxqvXi8y5NAHSQv687OVboS2uZIByzGd45/YxrRHg==", - "requires": {} - }, "tsconfig-paths": { "version": "3.14.2", "dev": true, @@ -5716,7 +5648,7 @@ "version": "5.2.2", "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.2.2.tgz", "integrity": "sha512-mI4WrpHsbCIcwT9cF4FZvr80QUeKvsUsUvKDoR+X/7XHQH98xYD8YHZg7ANtz2GtZt/CBq2QJ0thkGJMHfqc1w==", - "devOptional": true + "dev": true }, "unbox-primitive": { "version": "1.0.2", @@ -5741,7 +5673,7 @@ "version": "4.5.0", "resolved": "https://registry.npmjs.org/vite/-/vite-4.5.0.tgz", "integrity": "sha512-ulr8rNLA6rkyFAlVWw2q5YJ91v098AFQ2R0PRFwPzREXOUJQPtFUG0t+/ZikhaOCDqFoDhN6/v8Sq0o4araFAw==", - "devOptional": true, + "dev": true, "requires": { "esbuild": "^0.18.10", "fsevents": "~2.3.2", @@ -5749,26 +5681,6 @@ "rollup": "^3.27.1" } }, - "vite-tsconfig-paths": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/vite-tsconfig-paths/-/vite-tsconfig-paths-4.2.1.tgz", - "integrity": "sha512-GNUI6ZgPqT3oervkvzU+qtys83+75N/OuDaQl7HmOqFTb0pjZsuARrRipsyJhJ3enqV8beI1xhGbToR4o78nSQ==", - "requires": { - "debug": "^4.1.1", - "globrex": "^0.1.2", - "tsconfck": "^2.1.0" - }, - "dependencies": { - "debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "requires": { - "ms": "2.1.2" - } - } - } - }, "which": { "version": "2.0.2", "dev": true, diff --git a/package.json b/package.json index ec9a276..6c6214e 100644 --- a/package.json +++ b/package.json @@ -19,8 +19,7 @@ "gl-matrix": "^3.4.3", "luxon": "^3.4.4", "satellite.js": "^5.0.0", - "three": "^0.158.0", - "vite-tsconfig-paths": "^4.2.1" + "three": "^0.158.0" }, "devDependencies": { "@types/luxon": "^3.3.4", diff --git a/vite.config.js b/vite.config.js index a24be48..8f10896 100644 --- a/vite.config.js +++ b/vite.config.js @@ -2,7 +2,6 @@ import { defineConfig, loadEnv, splitVendorChunkPlugin } from 'vite'; import { visualizer } from 'rollup-plugin-visualizer'; import { threeMinifier } from '@yushijinhun/three-minifier-rollup'; -import tsconfigPaths from 'vite-tsconfig-paths' import path from 'path'; export default defineConfig(({ mode }) => { @@ -25,7 +24,6 @@ export default defineConfig(({ mode }) => { }, }, plugins: [ - tsconfigPaths(), // TODO attempting to reduce threejs bundle size. Still a WIP { ...threeMinifier(), enforce: 'pre' }, splitVendorChunkPlugin(),