You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/vite/src/node/config.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1092,7 +1092,7 @@ async function bundleConfigFile(
1092
1092
thrownewError(
1093
1093
`Failed to resolve ${JSON.stringify(
1094
1094
id,
1095
-
)}. This package is ESM only but it was tried to load by \`require\`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.`,
1095
+
)}. This package is ESM only but it was tried to load by \`require\`. See https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.`,
1096
1096
)
1097
1097
}
1098
1098
}
@@ -1109,7 +1109,7 @@ async function bundleConfigFile(
1109
1109
thrownewError(
1110
1110
`${JSON.stringify(
1111
1111
id,
1112
-
)} resolved to an ESM file. ESM file cannot be loaded by \`require\`. See http://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.`,
1112
+
)} resolved to an ESM file. ESM file cannot be loaded by \`require\`. See https://vitejs.dev/guide/troubleshooting.html#this-package-is-esm-only for more details.`,
console.warn(\`Module "${path}" has been externalized for browser compatibility. Cannot access "${path}.\${key}" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\`)
260
+
console.warn(\`Module "${path}" has been externalized for browser compatibility. Cannot access "${path}.\${key}" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\`)
Copy file name to clipboardExpand all lines: packages/vite/src/node/plugins/resolve.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -414,7 +414,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
414
414
}elseif(isProduction){
415
415
this.warn(
416
416
`Module "${id}" has been externalized for browser compatibility, imported by "${importer}". `+
417
-
`See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`,
417
+
`See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.`,
418
418
)
419
419
}
420
420
returnisProduction
@@ -436,7 +436,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
436
436
return`\
437
437
export default new Proxy({}, {
438
438
get(_, key) {
439
-
throw new Error(\`Module "${id}" has been externalized for browser compatibility. Cannot access "${id}.\${key}" in client code. See http://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\`)
439
+
throw new Error(\`Module "${id}" has been externalized for browser compatibility. Cannot access "${id}.\${key}" in client code. See https://vitejs.dev/guide/troubleshooting.html#module-externalized-for-browser-compatibility for more details.\`)
0 commit comments