mirror of
https://github.com/ueberdosis/tiptap.git
synced 2024-12-21 15:28:09 +08:00
e97630c639
* Require .js endings * add extension alias for cypress to resolve ts files with js endings
21 lines
487 B
TypeScript
21 lines
487 B
TypeScript
import 'iframe-resizer/js/iframeResizer.contentWindow'
|
|
import './style.scss'
|
|
|
|
import { createApp } from 'vue'
|
|
|
|
import { debug, splitName } from './helper.js'
|
|
|
|
export default function init(name: string, source: any) {
|
|
// @ts-ignore
|
|
window.source = source
|
|
document.title = name
|
|
|
|
const [demoCategory, demoName] = splitName(name)
|
|
|
|
import(`../src/${demoCategory}/${demoName}/Vue/index.vue`)
|
|
.then(module => {
|
|
createApp(module.default).mount('#app')
|
|
debug()
|
|
})
|
|
}
|