Skip to content

Commit 5ee0edf

Browse files
authored
Merge pull request #129 from /issues/127
孤児のshadow blockのコードを生成しないように修正
2 parents 88f8195 + a0c7fc3 commit 5ee0edf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib/generator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ class Generator {
114114
}
115115

116116
getScripts () {
117-
return this.currentTarget.blocks.getScripts();
117+
return this.currentTarget.blocks.getScripts().filter(blockId => !this.getBlock(blockId).shadow);
118118
}
119119

120120
/**

0 commit comments

Comments
 (0)