@@ -31,50 +31,7 @@ if (isDevServer) {
3131 }
3232}
3333// Workaround for https://github.com/nextcloud/webpack-vue-config/pull/432 causing problems with nextcloud-vue-collections
34- webpackConfig . resolve . alias = {
35- ...( webpackConfig . resolve . alias || { } ) ,
36- }
37-
38- webpackConfig . plugins . push (
39- new webpack . DefinePlugin ( {
40- __VUE_OPTIONS_API__ : true ,
41- __VUE_PROD_DEVTOOLS__ : false ,
42- __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ : buildMode !== 'production' ,
43- } )
44- )
45-
46- const vueRule = webpackConfig . module ?. rules ?. find ( ( rule ) => {
47- if ( ! Array . isArray ( rule . use ) ) {
48- return false
49- }
50-
51- return rule . use . some ( ( use ) => {
52- if ( typeof use === 'string' ) {
53- return use . includes ( 'vue-loader' )
54- }
55-
56- return use ?. loader ?. includes ( 'vue-loader' )
57- } )
58- } )
59-
60- if ( vueRule ?. use ) {
61- const vueLoaderUse = vueRule . use . find ( ( use ) => {
62- if ( typeof use === 'string' ) {
63- return use . includes ( 'vue-loader' )
64- }
65-
66- return use ?. loader ?. includes ( 'vue-loader' )
67- } )
68-
69- if ( vueLoaderUse && typeof vueLoaderUse === 'object' ) {
70- vueLoaderUse . options = {
71- ...( vueLoaderUse . options || { } ) ,
72- compilerOptions : {
73- ...( vueLoaderUse . options ?. compilerOptions || { } ) ,
74- } ,
75- }
76- }
77- }
34+ webpackConfig . resolve . alias = { }
7835
7936// Allow importing frappe-gantt CSS (not exposed via package.json exports field)
8037webpackConfig . resolve . alias [ 'frappe-gantt/dist/frappe-gantt.css' ] = path . resolve ( __dirname , 'node_modules/frappe-gantt/dist/frappe-gantt.css' )
0 commit comments