Skip to content

Commit

Permalink
fix: set defaults: risky to false and show version info
Browse files Browse the repository at this point in the history
  • Loading branch information
harlan-zw committed May 27, 2022
1 parent ed361b9 commit f562a2a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/nuxt-webpack-optimisations/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ export const defaultOptions: ResolvedOptions = {
profile: undefined,
debug: false,
measure: false,
risky: false,
displayVersionInfo: true,
measureMode: 'all',
esbuildMinifyOptions: {
client: {
Expand Down
1 change: 0 additions & 1 deletion packages/nuxt-webpack-optimisations/src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ export default defineNuxtModule<NuxtWebpackOptimisationOptions>({
version,
configKey: NUXT_CONFIG_KEY,
},
// support @nuxt/kit legacy
defaults: defaultOptions,
async setup(userConfig: NuxtWebpackOptimisationOptions, nuxt) {
const logger = consola.withScope(NAME)
Expand Down

0 comments on commit f562a2a

Please sign in to comment.