File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -221,12 +221,17 @@ export class ReplStore implements Store {
221
221
const json = JSON . parse ( map . code )
222
222
if ( ! json . imports . vue ) {
223
223
json . imports . vue = this . defaultVueRuntimeURL
224
- map . code = JSON . stringify ( json , null , 2 )
224
+ } else {
225
+ json . imports . vue = fixURL ( json . imports . vue )
225
226
}
226
227
if ( ! json . imports [ 'vue/server-renderer' ] ) {
227
228
json . imports [ 'vue/server-renderer' ] = this . defaultVueServerRendererURL
228
- map . code = JSON . stringify ( json , null , 2 )
229
+ } else {
230
+ json . imports [ 'vue/server-renderer' ] = fixURL (
231
+ json . imports [ 'vue/server-renderer' ]
232
+ )
229
233
}
234
+ map . code = JSON . stringify ( json , null , 2 )
230
235
} catch ( e ) { }
231
236
}
232
237
}
@@ -282,3 +287,7 @@ export class ReplStore implements Store {
282
287
console . info ( `[@vue/repl] Now using default Vue version` )
283
288
}
284
289
}
290
+
291
+ function fixURL ( url : string ) {
292
+ return url . replace ( 'https://sfc.vuejs' , 'https://play.vuejs' )
293
+ }
You can’t perform that action at this time.
0 commit comments