Skip to content

Commit

Permalink
Update engine.js
Browse files Browse the repository at this point in the history
  • Loading branch information
heiskr authored Dec 3, 2020
1 parent 92ba8d9 commit c410020
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/react/engine.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const tree = dirTree('./react/')
if (tree) {
for (const index in tree.children) {
const file = tree.children[index]
if (file.type === 'file') {
if (file.type === 'file' && file.extension === '.js') {
if (!fs.existsSync(path.join(dist, 'react'))) {
fs.mkdirSync(path.join(dist, 'react'), { recursive: true })
}
Expand Down

0 comments on commit c410020

Please sign in to comment.