Skip to content

Commit

Permalink
fix(gatsby): update check for default exports (#16979)
Browse files Browse the repository at this point in the history
  • Loading branch information
sidharthachatterjee authored and wardpeet committed Aug 23, 2019
1 parent 043bebe commit d16474d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/gatsby/src/redux/actions/public.js
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ ${reservedFields.map(f => ` * "${f}"`).join(`\n`)}
!fileContent.includes(`export default`) &&
!fileContent.includes(`module.exports`) &&
!fileContent.includes(`exports.default`) &&
!fileContent.includes(`exports["default"]`) &&
// this check only applies to js and ts, not mdx
/\.(jsx?|tsx?)/.test(path.extname(fileName))
) {
Expand Down

0 comments on commit d16474d

Please sign in to comment.