remove custom prefix from head

pull/4740/head
§Domenik Reitzner 6 years ago
parent 2af986b264
commit 4d4858b7c9

@ -1,7 +1,6 @@
import Node from './shared/Node';
import map_children from './shared/map_children';
import hash from '../utils/hash';
import get_prefix from '../utils/get_prefix';
export default class Head extends Node {
type: 'Head';
@ -23,7 +22,7 @@ export default class Head extends Node {
}));
if (this.children.length > 0) {
this.id = `${get_prefix(this.component.compile_options.prefix)}${hash(this.component.source.slice(this.start, this.end))}`;
this.id = `svelte-${hash(this.component.source.slice(this.start, this.end))}`;
}
}
}

Loading…
Cancel
Save