Skip to content

Commit 8539e43

Browse files
authored
Revert "fix: import whole build bundle from pr (#292)" (#295)
* Revert "fix: import whole build bundle from pr (#292)" This reverts commit 7cc27de. * chore: revert
1 parent 7cc27de commit 8539e43

File tree

4 files changed

+5
-4
lines changed

4 files changed

+5
-4
lines changed

src/App.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,8 @@ watch(autoSave, setAutoSaveState)
7373
<div v-if="!loading" antialiased>
7474
<Header :store="store" @refresh="refreshPreview" />
7575
<Repl
76-
v-model="autoSave"
7776
ref="replRef"
77+
v-model="autoSave"
7878
:theme="dark ? 'dark' : 'light'"
7979
:preview-theme="true"
8080
:store="store"

src/components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ declare module 'vue' {
1010
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
1111
ElForm: typeof import('element-plus/es')['ElForm']
1212
ElFormItem: typeof import('element-plus/es')['ElFormItem']
13+
ElLink: typeof import('element-plus/es')['ElLink']
1314
ElOption: typeof import('element-plus/es')['ElOption']
1415
ElPopover: typeof import('element-plus/es')['ElPopover']
1516
ElSelect: typeof import('element-plus/es')['ElSelect']

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/dist/index.css`,
58+
styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/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/dist/index.full.min.mjs`,
69+
'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/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' with { type: 'json' }
4+
import replPkg from '@vue/repl/package.json' assert { 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)