Skip to content

Commit

Permalink
fix: improve warning message for malformed packages (#6086)
Browse files Browse the repository at this point in the history
  • Loading branch information
benmccann authored Dec 15, 2021
1 parent dd79858 commit 717cb08
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/vite/src/node/ssr/ssrExternal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ function collectExternals(
}

logger.warn(
`${id} is incorrectly packaged. Please contact the package author to fix.`
`${id} doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.`
)
}
}
Expand Down

0 comments on commit 717cb08

Please sign in to comment.