mirror of
https://github.com/speice-io/isomorphic-rust
synced 2024-11-27 10:28:52 -05:00
10 lines
362 B
JavaScript
10 lines
362 B
JavaScript
|
const app = import("./percy")
|
||
|
app.then(module => {
|
||
|
console.log("Finished resolving application bundle")
|
||
|
let rootNode = document.getElementById('root')
|
||
|
rootNode.parentElement.replaceChild(module.main(), rootNode)
|
||
|
rootNode = document.getElementById('root')
|
||
|
}, (e) => {
|
||
|
console.log("Unable to resolve application bundle: ")
|
||
|
console.log(e)
|
||
|
})
|