Skip to content

Commit

Permalink
Worked locally but okay here you go TS
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdz committed Nov 17, 2020
1 parent 7d7554b commit e2a2752
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions packages/gatsby/src/bootstrap/resolve-module-exports.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,16 @@ const staticallyAnalyzeExports = (
// get foo from `export { foo } from 'bar'`
// get foo from `export { foo }`
ExportSpecifier: function ExportSpecifier(astPath) {
const exportName = astPath?.node?.exported?.name ?? ``
isES6 = true
if (exportName) {
exportNames.push(exportName)
const exp = astPath?.node?.exported
if (!exp) {
return
}
if (exp.type === `Identifier`) {
const exportName = exp.name
if (exportName) {
exportNames.push(exportName)
}
}
},

Expand Down

0 comments on commit e2a2752

Please sign in to comment.