Skip to content

Commit

Permalink
chore: correct config transpile comment (#5735)
Browse files Browse the repository at this point in the history
  • Loading branch information
sanyuan0704 committed Nov 18, 2021
1 parent 2cacc6b commit 4ffc9a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vite/src/node/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -873,8 +873,7 @@ export async function loadConfigFromFile(
if (!userConfig) {
// 2. if we reach here, the file is ts or using es import syntax, or
// the user has type: "module" in their package.json (#917)
// transpile es import syntax to require syntax using rollup.
// lazy require rollup (it's actually in dependencies)
// transpile es import syntax to require syntax using esbuild.
const bundled = await bundleConfigFile(resolvedPath)
dependencies = bundled.dependencies
userConfig = await loadConfigFromBundledFile(resolvedPath, bundled.code)
Expand Down

0 comments on commit 4ffc9a5

Please sign in to comment.