From d16474d3f79e77e318699af4adc0833b69e9651b Mon Sep 17 00:00:00 2001 From: Sidhartha Chatterjee Date: Fri, 23 Aug 2019 13:43:40 +0530 Subject: [PATCH] fix(gatsby): update check for default exports (#16979) --- packages/gatsby/src/redux/actions/public.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/gatsby/src/redux/actions/public.js b/packages/gatsby/src/redux/actions/public.js index 15ec401fcb768..83fd995d570a4 100644 --- a/packages/gatsby/src/redux/actions/public.js +++ b/packages/gatsby/src/redux/actions/public.js @@ -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)) ) {