Skip to content

Commit

Permalink
fix(playground): use jsdeliver esm for better compat
Browse files Browse the repository at this point in the history
  • Loading branch information
posva committed Oct 12, 2023
1 parent 35b77c8 commit 64342ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions packages/online-playground/src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ if (hash.startsWith('__DEV__')) {
const store = new ReplStore({
serializedState: hash,
defaultVueRuntimeURL:
'https://cdn.jsdelivr.net/npm/@vue/runtime-dom@3.3.4/+esm',
defaultVueServerRendererURL:
'https://cdn.jsdelivr.net/npm/@vue/server-renderer@3.3.4/+esm',
})
const previewOptions: ReplProps['previewOptions'] = {
Expand Down Expand Up @@ -67,8 +71,7 @@ if (!hash) {
? {
'@vue/devtools-api':
'https://cdn.jsdelivr.net/npm/@vue/devtools-api@6.5.1/lib/esm/index.js',
'vue-demi':
'https://cdn.jsdelivr.net/npm/vue-demi@0.14.6/lib/v3/index.mjs',
'vue-demi': 'https://cdn.jsdelivr.net/npm/vue-demi@0.14.6/+esm',
}
: {}),
},
Expand Down

0 comments on commit 64342ce

Please sign in to comment.