We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
vitejs
Learn more about funding links in repositories.
Report abuse
1 parent da38ad8 commit 72050f9Copy full SHA for 72050f9
packages/vite/src/node/plugins/resolve.ts
@@ -382,6 +382,11 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
382
`externalized node built-in "${id}" to empty module. ` +
383
`(imported by: ${colors.white(colors.dim(importer))})`,
384
)
385
+ } else if (isProduction) {
386
+ this.warn(
387
+ `Module "${id}" has been externalized for browser compatibility, imported by "${importer}". ` +
388
+ `See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`,
389
+ )
390
}
391
return isProduction
392
? browserExternalId
0 commit comments