Skip to content

Commit

Permalink
Fix re-export error message
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettjstevens committed Aug 31, 2023
1 parent d502530 commit 8806a02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/ReExports/modules.tsx
Expand Up @@ -594,15 +594,15 @@ const libsList = Object.keys(libs)
const inLibsOnly = libsList.filter(mod => !reExportsList.includes(mod))
if (inLibsOnly.length > 0) {
throw new Error(
`The following modules are in the re-exports list, but not the modules libs: ${inLibsOnly.join(
`The following modules are in the modules libs, but not the re-exports list: ${inLibsOnly.join(
', ',
)}`,
)
}
const inReExportsOnly = reExportsList.filter(mod => !libsList.includes(mod))
if (inReExportsOnly.length) {
throw new Error(
`The following modules are in the modules libs, but not the re-exports list: ${inReExportsOnly.join(
`The following modules are in the re-exports list, but not the modules libs: ${inReExportsOnly.join(
', ',
)}`,
)
Expand Down

0 comments on commit 8806a02

Please sign in to comment.