Skip to content

Commit

Permalink
fix(schema): update vue-loader options type (#21363)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lehoczky committed Jun 4, 2023
1 parent 63cf6a5 commit fd6a9b2
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/schema/build.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default defineBuildConfig({
'postcss',
'consola',
'ignore',
'vue-loader',
// Implicit
'@vue/compiler-core',
'@vue/shared',
Expand Down
1 change: 1 addition & 0 deletions packages/schema/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"vite": "4.3.9",
"vue": "3.3.4",
"vue-bundle-renderer": "1.0.3",
"vue-loader": "^17.2.2",
"vue-router": "4.2.2",
"webpack": "5.85.0"
},
Expand Down
6 changes: 5 additions & 1 deletion packages/schema/src/config/webpack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,8 +151,12 @@ export default defineUntypedSchema({
fontUrl: { esModule: false, limit: 1000 },
imgUrl: { esModule: false, limit: 1000 },
pugPlain: {},

/**
* See [vue-loader](https://github.com/vuejs/vue-loader) for available options.
* @type {Partial<typeof import('vue-loader')['VueLoaderOptions']>}
*/
vue: {
productionMode: { $resolve: async (val, get) => val ?? !(await get('dev')) },
transformAssetUrls: {
video: 'src',
source: 'src',
Expand Down
141 changes: 137 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit fd6a9b2

Please sign in to comment.