fix: build

This commit is contained in:
reya 2024-07-19 09:28:03 +07:00
parent 8fcf3551d8
commit dcf2791fe5
3 changed files with 1 additions and 48 deletions

View File

@ -55,7 +55,6 @@
"tailwindcss": "^3.4.6",
"typescript": "^5.5.3",
"vite": "^5.3.4",
"vite-plugin-top-level-await": "^1.4.1",
"vite-tsconfig-paths": "^4.3.2"
}
}

View File

@ -1,19 +1,10 @@
import { TanStackRouterVite } from "@tanstack/router-vite-plugin";
import react from "@vitejs/plugin-react-swc";
import { defineConfig } from "vite";
import topLevelAwait from "vite-plugin-top-level-await";
import viteTsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [
react(),
viteTsconfigPaths(),
topLevelAwait({
promiseExportName: "__tla",
promiseImportName: (i) => `__tla_${i}`,
}),
TanStackRouterVite(),
],
plugins: [react(), viteTsconfigPaths(), TanStackRouterVite()],
build: {
outDir: "../../dist",
},

View File

@ -187,9 +187,6 @@ importers:
vite:
specifier: ^5.3.4
version: 5.3.4
vite-plugin-top-level-await:
specifier: ^1.4.1
version: 1.4.1(rollup@4.18.1)(vite@5.3.4)
vite-tsconfig-paths:
specifier: ^4.3.2
version: 4.3.2(typescript@5.5.3)(vite@5.3.4)
@ -1340,15 +1337,6 @@ packages:
'@radix-ui/rect@1.1.0':
resolution: {integrity: sha512-A9+lCBZoaMJlVKcRBz2YByCG+Cp2t6nAnMnNba+XiWxnj6r4JUFqfsgwocMBZU9LPtdxC6wB56ySYpc7LQIoJg==}
'@rollup/plugin-virtual@3.0.2':
resolution: {integrity: sha512-10monEYsBp3scM4/ND4LNH5Rxvh3e/cVeL3jWTgZ2SrQ+BmUoQcopVQvnaMcOnykb1VkxUFuDAN+0FnpTFRy2A==}
engines: {node: '>=14.0.0'}
peerDependencies:
rollup: ^1.20.0||^2.0.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
'@rollup/rollup-android-arm-eabi@4.18.1':
resolution: {integrity: sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA==}
cpu: [arm]
@ -3337,10 +3325,6 @@ packages:
util-deprecate@1.0.2:
resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==}
uuid@9.0.1:
resolution: {integrity: sha512-b+1eJOlsR9K8HJpow9Ok3fiWOWSIcIzXodvv0rQjVoOVNpWMpxf1wZNpt4y9h10odCNrqnYp1OBzRktckBe3sA==}
hasBin: true
vfile-location@5.0.3:
resolution: {integrity: sha512-5yXvWDEgqeiYiBe1lbxYF7UMAIm/IcopxMHrMQDq3nvKcjPKIhZklUKL+AE7J7uApI4kwe2snsK+eI6UTj9EHg==}
@ -3370,11 +3354,6 @@ packages:
vue:
optional: true
vite-plugin-top-level-await@1.4.1:
resolution: {integrity: sha512-hogbZ6yT7+AqBaV6lK9JRNvJDn4/IJvHLu6ET06arNfo0t2IsyCaon7el9Xa8OumH+ESuq//SDf8xscZFE0rWw==}
peerDependencies:
vite: '>=2.8'
vite-tsconfig-paths@4.3.2:
resolution: {integrity: sha512-0Vd/a6po6Q+86rPlntHye7F31zA2URZMbH8M3saAZ/xR9QoGN/L21bxEGfXdWmFdNkqPpRdxFT7nmNe12e9/uA==}
peerDependencies:
@ -4509,10 +4488,6 @@ snapshots:
'@radix-ui/rect@1.1.0': {}
'@rollup/plugin-virtual@3.0.2(rollup@4.18.1)':
optionalDependencies:
rollup: 4.18.1
'@rollup/rollup-android-arm-eabi@4.18.1':
optional: true
@ -6794,8 +6769,6 @@ snapshots:
util-deprecate@1.0.2: {}
uuid@9.0.1: {}
vfile-location@5.0.3:
dependencies:
'@types/unist': 3.0.2
@ -6817,16 +6790,6 @@ snapshots:
react: 18.3.1
react-dom: 18.3.1(react@18.3.1)
vite-plugin-top-level-await@1.4.1(rollup@4.18.1)(vite@5.3.4):
dependencies:
'@rollup/plugin-virtual': 3.0.2(rollup@4.18.1)
'@swc/core': 1.7.0
uuid: 9.0.1
vite: 5.3.4
transitivePeerDependencies:
- '@swc/helpers'
- rollup
vite-tsconfig-paths@4.3.2(typescript@5.5.3)(vite@5.3.4):
dependencies:
debug: 4.3.5