Skip to content

Commit

Permalink
feat: add --bundleConfig flag to opt-out of bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
sheremet-va committed Nov 14, 2024
1 parent 12974c2 commit 31a84d9
Show file tree
Hide file tree
Showing 3 changed files with 315 additions and 70 deletions.
9 changes: 9 additions & 0 deletions packages/vite/src/node/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ interface GlobalCLIOptions {
l?: LogLevel
logLevel?: LogLevel
clearScreen?: boolean
bundleConfig?: boolean
d?: boolean | string
debug?: boolean | string
f?: string
Expand Down Expand Up @@ -151,6 +152,10 @@ cli
})
.option('-l, --logLevel <level>', `[string] info | warn | error | silent`)
.option('--clearScreen', `[boolean] allow/disable clear screen when logging`)
.option(
'--bundleConfig',
`[boolean] should the config be bundled or evaluated with a module runner when importing`,
)
.option('-d, --debug [feat]', `[string | boolean] show debug logs`)
.option('-f, --filter <filter>', `[string] filter debug logs`)
.option('-m, --mode <mode>', `[string] set env mode`)
Expand Down Expand Up @@ -180,6 +185,7 @@ cli
base: options.base,
mode: options.mode,
configFile: options.config,
bundleConfig: options.bundleConfig,
logLevel: options.logLevel,
clearScreen: options.clearScreen,
optimizeDeps: { force: options.force },
Expand Down Expand Up @@ -304,6 +310,7 @@ cli
base: options.base,
mode: options.mode,
configFile: options.config,
bundleConfig: options.bundleConfig,
logLevel: options.logLevel,
clearScreen: options.clearScreen,
build: buildOptions,
Expand Down Expand Up @@ -340,6 +347,7 @@ cli
root,
base: options.base,
configFile: options.config,
bundleConfig: options.bundleConfig,
logLevel: options.logLevel,
mode: options.mode,
},
Expand Down Expand Up @@ -382,6 +390,7 @@ cli
root,
base: options.base,
configFile: options.config,
bundleConfig: options.bundleConfig,
logLevel: options.logLevel,
mode: options.mode,
build: {
Expand Down
Loading

0 comments on commit 31a84d9

Please sign in to comment.