browze
v1.0.2
Published
Minimal transpilation for testing browser modules
Downloads
2
Readme
Browze
Minimal transpilation for testing browser modules
import execute from 'browze'
import webdriver from 'selenium-webdriver'
async function main() {
const driver = await new webdriver.Builder().withCapabilities({ browserName: 'chrome' }).build()
const html = await execute(
drive,
__filename,
`
import { h, render } from 'preact'
export default function() {
var vnode = h('div', { class: "cool" }, 'hi')
render(vnode, document.body)
return document.documentElement.outerHTML
}
`
)
}
License
MIT