We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bd2cf40 commit 67196f2Copy full SHA for 67196f2
1 file changed
designer-demo/src/main.js
@@ -14,12 +14,13 @@ import { initHotfixRegistry } from '@opentiny/tiny-engine-meta-register'
14
import 'virtual:svg-icons-register'
15
16
async function startApp() {
17
- const registry = await import('../registry')
18
- const { init } = await import('@opentiny/tiny-engine')
+ const hotfixFile = await fetch('/hotfixRegistry.js')
19
const hotfixRegistry =
20
(await initHotfixRegistry({
21
- url: 'http://localhost:8090/hotfixRegistry.js'
+ url: hotfixFile.url
22
})) || {}
+ const registry = await import('../registry')
23
+ const { init } = await import('@opentiny/tiny-engine')
24
init({
25
// 合并多个注册表
26
registry: [registry.default, hotfixRegistry],
0 commit comments