Skip to content

Commit

Permalink
test "exports.default" when validating page component (#3941)
Browse files Browse the repository at this point in the history
  • Loading branch information
pieh authored and KyleAMathews committed Feb 9, 2018
1 parent 47cd466 commit 3ee1c04
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 3ee1c04

Please sign in to comment.