diff --git a/src/composables/store.ts b/src/composables/store.ts index fd3f245..21ae19f 100644 --- a/src/composables/store.ts +++ b/src/composables/store.ts @@ -55,7 +55,7 @@ export const useStore = (initial: Initial) => { const userOptions: UserOptions = pr ? { showHidden: true, - styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/index.css`, + styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/dist/index.css`, } : {} const hideFile = !IS_DEV && !userOptions.showHidden @@ -66,7 +66,7 @@ export const useStore = (initial: Initial) => { if (pr) importMap = mergeImportMap(importMap, { imports: { - 'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/index.full.min.mjs`, + 'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/dist/index.full.min.mjs`, 'element-plus/': 'unsupported', }, }) diff --git a/vite.config.ts b/vite.config.ts index c6bde6a..cca7b48 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,7 +1,7 @@ import fs from 'node:fs' import path from 'node:path' import vue from '@vitejs/plugin-vue' -import replPkg from '@vue/repl/package.json' assert { type: 'json' } +import replPkg from '@vue/repl/package.json' with { type: 'json' } import Unocss from 'unocss/vite' import AutoImport from 'unplugin-auto-import/vite' import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'