onu-ui: [BUG]: Playground HMR not working

Description

I want to try to run Playground in the local dev environment, but I found that the libraries that Playground depends on are all CDN links, which means that Playground cannot sense changes in the component library, and I also found a problem, when I modify ‘welcome.vue’ with the editor, Playground cannot be refresh @baiwusanyu have time to help see if not,hhh.

You can try the minimal implementation locally bypnpm play .

About this issue

  • Original URL
  • State: closed
  • Created a year ago
  • Comments: 19 (19 by maintainers)

Most upvoted comments

@baiwusanyu-c I don’t quite understand how to get the real link in the playground by passing in the code param, You are familiar with this piece, can you help take a look ❤️

Do you have Chris WeChat, you can contact me through him and discuss further

ok let me sum it up

  1. All dependencies come from CDN, so the code being developed locally cannot be used in the playground during development.
  2. vite lost hot update in playground.
  3. The url is a bit long (maybe consider streamlining dependencies or replacing with a more streamlined algorithm).
  4. <del>See switching failure for the same version (for example: 1.0.13-beta.2 -> 1.0.13-beta.1 may display an incorrect version).</del>(It may be a problem when the package is released)