Skip to content

Commit

Permalink
Revert "fix: import whole build bundle from pr (#292)" (#295)
Browse files Browse the repository at this point in the history
* Revert "fix: import whole build bundle from pr (#292)"

This reverts commit 7cc27de.

* chore: revert
  • Loading branch information
btea authored Jan 13, 2025
1 parent 7cc27de commit 8539e43
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ watch(autoSave, setAutoSaveState)
<div v-if="!loading" antialiased>
<Header :store="store" @refresh="refreshPreview" />
<Repl
v-model="autoSave"
ref="replRef"
v-model="autoSave"
:theme="dark ? 'dark' : 'light'"
:preview-theme="true"
:store="store"
Expand Down
1 change: 1 addition & 0 deletions src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ declare module 'vue' {
ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
ElForm: typeof import('element-plus/es')['ElForm']
ElFormItem: typeof import('element-plus/es')['ElFormItem']
ElLink: typeof import('element-plus/es')['ElLink']
ElOption: typeof import('element-plus/es')['ElOption']
ElPopover: typeof import('element-plus/es')['ElPopover']
ElSelect: typeof import('element-plus/es')['ElSelect']
Expand Down
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/dist/index.css`,
styleSource: `https://preview-${pr}-element-plus.surge.sh/bundle/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/dist/index.full.min.mjs`,
'element-plus': `https://preview-${pr}-element-plus.surge.sh/bundle/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' with { type: 'json' }
import replPkg from '@vue/repl/package.json' assert { 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 8539e43

Please # to comment.