Skip to content

Commit

Permalink
fix: import whole build bundle from pr (#292)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dsaquel authored Jan 13, 2025
1 parent 53b7ca7 commit 7cc27de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/composables/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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',
},
})
Expand Down
2 changes: 1 addition & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit 7cc27de

Please sign in to comment.