Skip to content

Commit

Permalink
chore: updates
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorlxy committed Aug 16, 2024
1 parent ddea4de commit eb90978
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion e2e/docs/.vuepress/theme/client/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,22 @@ import NotFound from './layouts/NotFound.vue'
import './styles/index.scss'

export default defineClientConfig({
enhance({ app, router }) {
enhance() {
// ...
},

setup() {
// ...
},

/* eslint-disable @typescript-eslint/no-unsafe-assignment -- vue sfc type info is not available in eslint scope */
layouts: {
CssModulesLayout,
CustomLayout,
Layout,
NotFound,
},
/* eslint-enable @typescript-eslint/no-unsafe-assignment */

rootComponents: [RootComponentFromTheme],
})
8 changes: 5 additions & 3 deletions packages/bundler-webpack/src/config/handlePluginDefine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,14 @@ export const handlePluginDefine = async ({

// tap the arguments of DefinePlugin
config.plugin('define').tap(([options]) => {
defineResult.forEach((defineObject) =>
defineResult.forEach((defineObject) => {
Object.entries(defineObject).forEach(([key, value]) => {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access
options[key] = JSON.stringify(value)
}),
)
})
})

// eslint-disable-next-line @typescript-eslint/no-unsafe-return
return [options]
})
}
2 changes: 1 addition & 1 deletion packages/cli/src/config/loadUserConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,6 @@ export const loadUserConfig = async (
}
return {
userConfig,
userConfigDependencies: Object.keys(result.metafile?.inputs ?? {}),
userConfigDependencies: Object.keys(result.metafile.inputs),
}
}

0 comments on commit eb90978

Please sign in to comment.