Skip to content

Commit

Permalink
test "exports.default" when validating page component
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh committed Feb 9, 2018
1 parent 784fa0c commit b717d32
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/gatsby/src/redux/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,8 @@ actions.createPage = (page: PageInput, plugin?: Plugin, traceId?: string) => {
}
if (
!fileContent.includes(`export default`) &&
!fileContent.includes(`module.exports`)
!fileContent.includes(`module.exports`) &&
!fileContent.includes(`exports.default`)
) {
includesDefaultExport = false
}
Expand Down

0 comments on commit b717d32

Please sign in to comment.