Skip to content

Commit c410020

Browse files
authored
Update engine.js
1 parent 92ba8d9 commit c410020

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/react/engine.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const tree = dirTree('./react/')
1515
if (tree) {
1616
for (const index in tree.children) {
1717
const file = tree.children[index]
18-
if (file.type === 'file') {
18+
if (file.type === 'file' && file.extension === '.js') {
1919
if (!fs.existsSync(path.join(dist, 'react'))) {
2020
fs.mkdirSync(path.join(dist, 'react'), { recursive: true })
2121
}

0 commit comments

Comments
 (0)