Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@

// breaking changes
"kill-port", // `kill-port:^2.0.0 has perf issues (#8392)

// v1 is a drop-in replacement for debug, while v2 introduces breaking changes
"obug",
],
"github-actions": {
"managerFilePatterns": [
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@
"@types/babel__preset-env": "^7.10.0",
"@types/convert-source-map": "^2.0.3",
"@types/cross-spawn": "^6.0.6",
"@types/debug": "^4.1.12",
"@types/estree": "^1.0.8",
"@types/etag": "^1.8.4",
"@types/less": "^3.0.8",
Expand All @@ -65,7 +64,7 @@
"picocolors": "^1.1.1",
"playwright-chromium": "^1.56.1",
"prettier": "3.6.2",
"rolldown": "^1.0.0-beta.50",
"rolldown": "^1.0.0-beta.51",
"rollup": "^4.43.0",
"simple-git-hooks": "^2.13.1",
"tsx": "^4.20.6",
Expand Down
68 changes: 22 additions & 46 deletions packages/vite/LICENSE.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,33 +534,6 @@ Repository: https://github.com/mathiasbynens/cssesc

---------------------------------------

## debug
License: MIT
By: Josh Junon, TJ Holowaychuk, Nathan Rajlich, Andrew Rhyne
Repository: https://github.com/debug-js/debug

> (The MIT License)
>
> Copyright (c) 2014-2017 TJ Holowaychuk <[email protected]>
> Copyright (c) 2018-2021 Josh Junon
>
> Permission is hereby granted, free of charge, to any person obtaining a copy of this software
> and associated documentation files (the 'Software'), to deal in the Software without restriction,
> including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
> and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
> subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all copies or substantial
> portions of the Software.
>
> THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
> LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
> IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
> WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
> SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

---------------------------------------

## dotenv
License: BSD-2-Clause
Repository: https://github.com/motdotla/dotenv
Expand Down Expand Up @@ -1322,13 +1295,14 @@ Repository: https://github.com/lukeed/mrmime

---------------------------------------

## ms
## normalize-path
License: MIT
Repository: https://github.com/vercel/ms
By: Jon Schlinkert, Blaine Bublitz
Repository: https://github.com/jonschlinkert/normalize-path

> The MIT License (MIT)
>
> Copyright (c) 2020 Vercel, Inc.
> Copyright (c) 2014-2018, Jon Schlinkert.
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand All @@ -1337,27 +1311,27 @@ Repository: https://github.com/vercel/ms
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.

---------------------------------------

## normalize-path
## object-assign
License: MIT
By: Jon Schlinkert, Blaine Bublitz
Repository: https://github.com/jonschlinkert/normalize-path
By: Sindre Sorhus
Repository: https://github.com/sindresorhus/object-assign

> The MIT License (MIT)
>
> Copyright (c) 2014-2018, Jon Schlinkert.
> Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand All @@ -1379,14 +1353,16 @@ Repository: https://github.com/jonschlinkert/normalize-path

---------------------------------------

## object-assign
## obug
License: MIT
By: Sindre Sorhus
Repository: https://github.com/sindresorhus/object-assign
By: Kevin Deng
Repository: https://github.com/sxzz/obug

> The MIT License (MIT)
>
> Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
> Copyright © 2025-PRESENT Kevin Deng (https://github.com/sxzz)
> Copyright (c) 2014-2017 TJ Holowaychuk <[email protected]>
> Copyright (c) 2018-2021 Josh Junon
>
> Permission is hereby granted, free of charge, to any person obtaining a copy
> of this software and associated documentation files (the "Software"), to deal
Expand All @@ -1395,16 +1371,16 @@ Repository: https://github.com/sindresorhus/object-assign
> copies of the Software, and to permit persons to whom the Software is
> furnished to do so, subject to the following conditions:
>
> The above copyright notice and this permission notice shall be included in
> all copies or substantial portions of the Software.
> The above copyright notice and this permission notice shall be included in all
> copies or substantial portions of the Software.
>
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
> THE SOFTWARE.
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
> SOFTWARE.

---------------------------------------

Expand Down
6 changes: 3 additions & 3 deletions packages/vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
"convert-source-map": "^2.0.0",
"cors": "^2.8.5",
"cross-spawn": "^7.0.6",
"debug": "^4.4.3",
"obug": "^1.0.2",
"dotenv": "^17.2.3",
"dotenv-expand": "^12.0.3",
"es-module-lexer": "^1.7.0",
Expand All @@ -137,8 +137,8 @@
"postcss-modules": "^6.0.1",
"premove": "^4.0.0",
"resolve.exports": "^2.0.3",
"rolldown": "^1.0.0-beta.50",
"rolldown-plugin-dts": "^0.17.8",
"rolldown": "^1.0.0-beta.51",
"rolldown-plugin-dts": "^0.18.0",
"rollup-plugin-license": "^3.6.0",
"sass": "^1.94.0",
"sass-embedded": "^1.93.3",
Expand Down
6 changes: 0 additions & 6 deletions packages/vite/rolldown.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,12 +75,6 @@ const nodeConfig = defineConfig({
index: path.resolve(__dirname, 'src/node/index.ts'),
cli: path.resolve(__dirname, 'src/node/cli.ts'),
},
resolve: {
alias: {
// we can always use node version (the default entry point has browser support)
debug: 'debug/src/node.js',
},
},
external: [
/^vite\//,
'fsevents',
Expand Down
7 changes: 3 additions & 4 deletions packages/vite/src/node/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import fsp from 'node:fs/promises'
import remapping from '@jridgewell/remapping'
import type { DecodedSourceMap, RawSourceMap } from '@jridgewell/remapping'
import colors from 'picocolors'
import debug from 'debug'
import type { Debugger } from 'obug'
import debug from 'obug'
import type MagicString from 'magic-string'
import type { Equal } from '@type-challenges/utils'

Expand Down Expand Up @@ -183,13 +184,11 @@ export type ViteDebugScope = `vite:${string}`
export function createDebugger(
namespace: ViteDebugScope,
options: DebuggerOptions = {},
): debug.Debugger['log'] | undefined {
): Debugger['log'] | undefined {
const log = debug(namespace)
const { onlyWhenFocused, depth } = options

// @ts-expect-error - The log function is bound to inspectOpts, but the type is not reflected
if (depth && log.inspectOpts && log.inspectOpts.depth == null) {
// @ts-expect-error - The log function is bound to inspectOpts, but the type is not reflected
log.inspectOpts.depth = options.depth
}

Expand Down
Loading