Skip to content

Commit d3af879

Browse files
authored
docs: point links in messages at https: (#14992)
1 parent 82a5b11 commit d3af879

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

packages/vite/src/node/config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1092,7 +1092,7 @@ async function bundleConfigFile(
10921092
throw new Error(
10931093
`Failed to resolve ${JSON.stringify(
10941094
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.`,
10961096
)
10971097
}
10981098
}
@@ -1109,7 +1109,7 @@ async function bundleConfigFile(
11091109
throw new Error(
11101110
`${JSON.stringify(
11111111
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.`,
11131113
)
11141114
}
11151115
return {

packages/vite/src/node/optimizer/esbuildDepPlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ module.exports = Object.create(new Proxy({}, {
257257
key !== 'constructor' &&
258258
key !== 'splice'
259259
) {
260-
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.\`)
261261
}
262262
}
263263
}))`,

packages/vite/src/node/plugins/resolve.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
414414
} else if (isProduction) {
415415
this.warn(
416416
`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.`,
418418
)
419419
}
420420
return isProduction
@@ -436,7 +436,7 @@ export function resolvePlugin(resolveOptions: InternalResolveOptions): Plugin {
436436
return `\
437437
export default new Proxy({}, {
438438
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.\`)
440440
}
441441
})`
442442
}

0 commit comments

Comments
 (0)