prevent double declarations

pull/1864/head
Rich Harris 7 years ago
parent b55ba7a384
commit d7215443bb

@ -130,10 +130,11 @@ export default class Component {
this.stylesheet.warnOnUnusedSelectors(options.onwarn);
if (!this.ast.js) {
this.declarations.push(...this.expectedProperties);
const props = [...this.expectedProperties];
this.declarations.push(...props);
addToSet(this.writable_declarations, this.expectedProperties);
this.exports = this.declarations.map(name => ({
this.exports = props.map(name => ({
name,
as: name
}));

Loading…
Cancel
Save