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)) ) {