fix: drop the import optimize in vite.

This commit is contained in:
Yufan Sheng 2024-07-08 22:36:37 +08:00
parent 02e49f9230
commit b0fc869c1d
Signed by: syhily
GPG Key ID: 9D18A22A7DCD5A9B
3 changed files with 31 additions and 11 deletions

View File

@ -65,7 +65,7 @@ export default defineConfig({
}, },
vite: { vite: {
// Add this for avoiding the needless import optimize in Vite. // Add this for avoiding the needless import optimize in Vite.
optimizeDeps: { exclude: ['@napi-rs/canvas'] }, optimizeDeps: { exclude: ['@napi-rs/canvas', 'opendal'] },
}, },
build: { build: {
assets: 'cats', assets: 'cats',

36
package-lock.json generated
View File

@ -13,7 +13,7 @@
"@astrojs/node": "^8.3.2", "@astrojs/node": "^8.3.2",
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "^4.0.7",
"astro": "^4.11.5", "astro": "^4.11.5",
"drizzle-orm": "^0.31.2", "drizzle-orm": "^0.31.3",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"luxon": "^3.4.4", "luxon": "^3.4.4",
@ -33,7 +33,7 @@
"@types/qrcode-svg": "^1.1.4", "@types/qrcode-svg": "^1.1.4",
"@types/unist": "^3.0.2", "@types/unist": "^3.0.2",
"aplayer": "^1.10.1", "aplayer": "^1.10.1",
"astro-uploader": "^1.1.1", "astro-uploader": "^1.1.2",
"bootstrap": "^5.3.3", "bootstrap": "^5.3.3",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0", "prettier-plugin-astro": "^0.14.0",
@ -2158,6 +2158,25 @@
"url": "https://opencollective.com/popperjs" "url": "https://opencollective.com/popperjs"
} }
}, },
"node_modules/@prisma/client": {
"version": "5.16.1",
"resolved": "https://registry.npmjs.org/@prisma/client/-/client-5.16.1.tgz",
"integrity": "sha512-wM9SKQjF0qLxdnOZIVAIMKiz6Hu7vDt4FFAih85K1dk/Rr2mdahy6d3QP41K62N9O0DJJA//gUDA3Mp49xsKIg==",
"hasInstallScript": true,
"license": "Apache-2.0",
"peer": true,
"engines": {
"node": ">=16.13"
},
"peerDependencies": {
"prisma": "*"
},
"peerDependenciesMeta": {
"prisma": {
"optional": true
}
}
},
"node_modules/@rollup/rollup-android-arm-eabi": { "node_modules/@rollup/rollup-android-arm-eabi": {
"version": "4.18.0", "version": "4.18.0",
"resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz", "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.0.tgz",
@ -2902,9 +2921,9 @@
} }
}, },
"node_modules/astro-uploader": { "node_modules/astro-uploader": {
"version": "1.1.1", "version": "1.1.2",
"resolved": "https://registry.npmjs.org/astro-uploader/-/astro-uploader-1.1.1.tgz", "resolved": "https://registry.npmjs.org/astro-uploader/-/astro-uploader-1.1.2.tgz",
"integrity": "sha512-Pja+lINI1WsqSklaCdXl/B4YmXDgnCG2Lcr+lLjcIPDBG/fGX/XkA35rZhj5Z1tihqbjIX8CnNsgLedB76H9nQ==", "integrity": "sha512-8YtFPS0Cpn5oW3WvuG7d/1xl3C0+H0FEzT8MSuTfOj1woQxkI2sLSwHjZ0Zwe1+TIgwobOnOseEYEb40anfbgQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -3658,9 +3677,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/drizzle-orm": { "node_modules/drizzle-orm": {
"version": "0.31.2", "version": "0.31.3",
"resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.31.2.tgz", "resolved": "https://registry.npmjs.org/drizzle-orm/-/drizzle-orm-0.31.3.tgz",
"integrity": "sha512-QnenevbnnAzmbNzQwbhklvIYrDE8YER8K7kSrAWQSV1YvFCdSQPzj+jzqRdTSsV2cDqSpQ0NXGyL1G9I43LDLg==", "integrity": "sha512-EpBqJeeUHH3jQrXSojCnclCoP5jMZafzSQs0NO1cu7t6cf4F+8acC9DjyWhanCqEmRn+0nJyAEU6xHQDYTEjnQ==",
"license": "Apache-2.0", "license": "Apache-2.0",
"peerDependencies": { "peerDependencies": {
"@aws-sdk/client-rds-data": ">=3", "@aws-sdk/client-rds-data": ">=3",
@ -3671,6 +3690,7 @@
"@op-engineering/op-sqlite": ">=2", "@op-engineering/op-sqlite": ">=2",
"@opentelemetry/api": "^1.4.1", "@opentelemetry/api": "^1.4.1",
"@planetscale/database": ">=1", "@planetscale/database": ">=1",
"@prisma/client": "*",
"@tidbcloud/serverless": "*", "@tidbcloud/serverless": "*",
"@types/better-sqlite3": "*", "@types/better-sqlite3": "*",
"@types/pg": "*", "@types/pg": "*",

View File

@ -45,7 +45,7 @@
"@astrojs/node": "^8.3.2", "@astrojs/node": "^8.3.2",
"@astrojs/rss": "^4.0.7", "@astrojs/rss": "^4.0.7",
"astro": "^4.11.5", "astro": "^4.11.5",
"drizzle-orm": "^0.31.2", "drizzle-orm": "^0.31.3",
"fuse.js": "^7.0.0", "fuse.js": "^7.0.0",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"luxon": "^3.4.4", "luxon": "^3.4.4",
@ -65,7 +65,7 @@
"@types/qrcode-svg": "^1.1.4", "@types/qrcode-svg": "^1.1.4",
"@types/unist": "^3.0.2", "@types/unist": "^3.0.2",
"aplayer": "^1.10.1", "aplayer": "^1.10.1",
"astro-uploader": "^1.1.1", "astro-uploader": "^1.1.2",
"bootstrap": "^5.3.3", "bootstrap": "^5.3.3",
"prettier": "^3.3.2", "prettier": "^3.3.2",
"prettier-plugin-astro": "^0.14.0", "prettier-plugin-astro": "^0.14.0",