build(deps): 依赖升级
This commit is contained in:
@@ -2,4 +2,4 @@
|
|||||||
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin.
|
# The SENTRY_AUTH_TOKEN variable is picked up by the Sentry Build Plugin.
|
||||||
# It's used for authentication when uploading source maps.
|
# It's used for authentication when uploading source maps.
|
||||||
# You can also set this env variable in your own `.env` files and remove this file.
|
# You can also set this env variable in your own `.env` files and remove this file.
|
||||||
SENTRY_AUTH_TOKEN="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"
|
SENTRY_AUTH_TOKEN="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"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import { configMockPlugin } from './mock'
|
|||||||
import unplugin from './unplugin'
|
import unplugin from './unplugin'
|
||||||
import { sentryVitePlugin } from '@sentry/vite-plugin'
|
import { sentryVitePlugin } from '@sentry/vite-plugin'
|
||||||
|
|
||||||
export function createVitePlugins(viteEnv, isBuild, isSENTRY) {
|
export function createVitePlugins(viteEnv, isBuild) {
|
||||||
const plugins = [vue(), ...unplugin, configHtmlPlugin(viteEnv, isBuild), Unocss()]
|
const plugins = [vue(), ...unplugin, configHtmlPlugin(viteEnv, isBuild), Unocss()]
|
||||||
|
|
||||||
if (viteEnv?.VITE_USE_MOCK) {
|
if (viteEnv?.VITE_USE_MOCK) {
|
||||||
@@ -37,16 +37,19 @@ export function createVitePlugins(viteEnv, isBuild, isSENTRY) {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (isSENTRY) {
|
if (viteEnv.VITE_SENTRY) {
|
||||||
|
plugins.push(
|
||||||
sentryVitePlugin({
|
sentryVitePlugin({
|
||||||
authToken: process.env.SENTRY_AUTH_TOKEN,
|
authToken: process.env.SENTRY_AUTH_TOKEN,
|
||||||
org: 'sentry',
|
org: 'sentry',
|
||||||
project: 'jdt-admin',
|
project: 'jdt-admin',
|
||||||
url: 'https://w.huakk.top',
|
url: 'https://w.huakk.top',
|
||||||
sourcemaps: {
|
sourcemaps: {
|
||||||
|
ignore: ['node_modules'],
|
||||||
filesToDeleteAfterUpload: ['dist/**/*.js.map'],
|
filesToDeleteAfterUpload: ['dist/**/*.js.map'],
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
return plugins
|
return plugins
|
||||||
|
|||||||
28
package.json
28
package.json
@@ -32,33 +32,33 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sentry/vite-plugin": "^2.9.0",
|
"@sentry/vite-plugin": "^2.10.1",
|
||||||
"@sentry/vue": "^7.77.0",
|
"@sentry/vue": "^7.81.0",
|
||||||
"@unocss/eslint-config": "^0.55.7",
|
"@unocss/eslint-config": "^0.55.7",
|
||||||
"@vueuse/core": "^10.5.0",
|
"@vueuse/core": "^10.6.1",
|
||||||
"@wangeditor/editor": "^5.1.23",
|
"@wangeditor/editor": "^5.1.23",
|
||||||
"@wangeditor/editor-for-vue": "^5.1.12",
|
"@wangeditor/editor-for-vue": "^5.1.12",
|
||||||
"axios": "^1.5.1",
|
"axios": "^1.6.2",
|
||||||
"dayjs": "^1.11.10",
|
"dayjs": "^1.11.10",
|
||||||
"echarts": "^5.4.3",
|
"echarts": "^5.4.3",
|
||||||
"lodash-es": "^4.17.21",
|
"lodash-es": "^4.17.21",
|
||||||
"md-editor-v3": "^4.7.0",
|
"md-editor-v3": "^4.8.3",
|
||||||
"mockjs": "^1.1.0",
|
"mockjs": "^1.1.0",
|
||||||
"pinia": "^2.1.6",
|
"pinia": "^2.1.7",
|
||||||
"vite": "^4.4.11",
|
"vite": "^4.5.0",
|
||||||
"vue": "3.3.4",
|
"vue": "3.3.4",
|
||||||
"vue-echarts": "^6.6.1",
|
"vue-echarts": "^6.6.1",
|
||||||
"vue-router": "^4.2.5",
|
"vue-router": "^4.2.5",
|
||||||
"xlsx": "^0.18.5"
|
"xlsx": "^0.18.5"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@commitlint/cli": "^17.7.2",
|
"@commitlint/cli": "^17.8.1",
|
||||||
"@commitlint/config-conventional": "^17.7.0",
|
"@commitlint/config-conventional": "^17.8.1",
|
||||||
"@iconify/json": "^2.2.126",
|
"@iconify/json": "^2.2.144",
|
||||||
"@iconify/vue": "^4.1.1",
|
"@iconify/vue": "^4.1.1",
|
||||||
"@unocss/preset-rem-to-px": "^0.55.7",
|
"@unocss/preset-rem-to-px": "^0.55.7",
|
||||||
"@vitejs/plugin-vue": "^4.4.0",
|
"@vitejs/plugin-vue": "^4.5.0",
|
||||||
"@vue/compiler-sfc": "^3.3.4",
|
"@vue/compiler-sfc": "^3.3.8",
|
||||||
"@zclzone/eslint-config": "^0.0.4",
|
"@zclzone/eslint-config": "^0.0.4",
|
||||||
"chalk": "^5.3.0",
|
"chalk": "^5.3.0",
|
||||||
"commitizen": "^4.3.0",
|
"commitizen": "^4.3.0",
|
||||||
@@ -71,9 +71,9 @@
|
|||||||
"lint-staged": "^13.3.0",
|
"lint-staged": "^13.3.0",
|
||||||
"naive-ui": "^2.35.0",
|
"naive-ui": "^2.35.0",
|
||||||
"rollup-plugin-visualizer": "^5.9.2",
|
"rollup-plugin-visualizer": "^5.9.2",
|
||||||
"sass": "^1.69.0",
|
"sass": "^1.69.5",
|
||||||
"unocss": "0.55.0",
|
"unocss": "0.55.0",
|
||||||
"unplugin-auto-import": "^0.16.6",
|
"unplugin-auto-import": "^0.16.7",
|
||||||
"unplugin-icons": "^0.16.6",
|
"unplugin-icons": "^0.16.6",
|
||||||
"unplugin-vue-components": "^0.25.2",
|
"unplugin-vue-components": "^0.25.2",
|
||||||
"vite-plugin-compression": "^0.5.1",
|
"vite-plugin-compression": "^0.5.1",
|
||||||
|
|||||||
1556
pnpm-lock.yaml
generated
1556
pnpm-lock.yaml
generated
File diff suppressed because it is too large
Load Diff
@@ -18,7 +18,7 @@ export async function setupRouter(app) {
|
|||||||
if (import.meta.env.VITE_SENTRY) {
|
if (import.meta.env.VITE_SENTRY) {
|
||||||
Sentry.init({
|
Sentry.init({
|
||||||
app,
|
app,
|
||||||
dsn: 'https://adad4faa9b08aa08438ef33cba7962ab@w.huakk.top/6',
|
dsn: 'https://a0b6f167271366f40f05e238d63a6fa0@w.huakk.top/11',
|
||||||
integrations: [
|
integrations: [
|
||||||
new Sentry.BrowserTracing({
|
new Sentry.BrowserTracing({
|
||||||
tracePropagationTargets: ['localhost', /^https:\/\/w\.huakk\.top\/api/],
|
tracePropagationTargets: ['localhost', /^https:\/\/w\.huakk\.top\/api/],
|
||||||
|
|||||||
@@ -55,4 +55,8 @@
|
|||||||
import { useUserStore } from '@/store'
|
import { useUserStore } from '@/store'
|
||||||
|
|
||||||
const userStore = useUserStore()
|
const userStore = useUserStore()
|
||||||
|
// eslint-disable-next-line no-undef,no-unreachable
|
||||||
|
mytest()
|
||||||
|
|
||||||
|
throw new Error('error')
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user