Skip to content

Commit d16474d

Browse files
sidharthachatterjeewardpeet
authored andcommittedAug 23, 2019
fix(gatsby): update check for default exports (#16979)
1 parent 043bebe commit d16474d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed
 

‎packages/gatsby/src/redux/actions/public.js

+1
Original file line numberDiff line numberDiff line change
@@ -359,6 +359,7 @@ ${reservedFields.map(f => ` * "${f}"`).join(`\n`)}
359359
!fileContent.includes(`export default`) &&
360360
!fileContent.includes(`module.exports`) &&
361361
!fileContent.includes(`exports.default`) &&
362+
!fileContent.includes(`exports["default"]`) &&
362363
// this check only applies to js and ts, not mdx
363364
/\.(jsx?|tsx?)/.test(path.extname(fileName))
364365
) {

0 commit comments

Comments
 (0)
Please sign in to comment.