Pass compiler version in dev events

pull/4213/head
Timothy Johnson 5 years ago committed by Conduitry
parent 33aab87082
commit 646c3df3c6

@ -60,6 +60,9 @@ export default [
],
external,
plugins: [
replace({
__VERSION__: pkg.version
}),
ts_plugin,
{
writeBundle(bundle) {

@ -2,7 +2,7 @@ import { custom_event, append, insert, detach, listen, attr } from './dom';
import { SvelteComponent } from './Component';
export function dispatch_dev<T=any>(type: string, detail?: T) {
document.dispatchEvent(custom_event(type, detail));
document.dispatchEvent(custom_event(type, { version: '__VERSION__', ...detail }));
}
export function append_dev(target: Node, node: Node) {

Loading…
Cancel
Save