Skip to content

Commit 7cc27de

Browse files
authored
fix: import whole build bundle from pr (#292)
1 parent 53b7ca7 commit 7cc27de

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/composables/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const useStore = (initial: Initial) => {
5555
const userOptions: UserOptions = pr
5656
? {
5757
showHidden: true,
58-
styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/index.css`,
58+
styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/dist/index.css`,
5959
}
6060
: {}
6161
const hideFile = !IS_DEV && !userOptions.showHidden
@@ -66,7 +66,7 @@ export const useStore = (initial: Initial) => {
6666
if (pr)
6767
importMap = mergeImportMap(importMap, {
6868
imports: {
69-
'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/index.full.min.mjs`,
69+
'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/dist/index.full.min.mjs`,
7070
'element-plus/': 'unsupported',
7171
},
7272
})

vite.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fs from 'node:fs'
22
import path from 'node:path'
33
import vue from '@vitejs/plugin-vue'
4-
import replPkg from '@vue/repl/package.json' assert { type: 'json' }
4+
import replPkg from '@vue/repl/package.json' with { type: 'json' }
55
import Unocss from 'unocss/vite'
66
import AutoImport from 'unplugin-auto-import/vite'
77
import { ElementPlusResolver } from 'unplugin-vue-components/resolvers'

0 commit comments

Comments
 (0)