From da6c80afe233321a95d2d363283f3709724d7b2c Mon Sep 17 00:00:00 2001 From: Error354 Date: Tue, 22 Mar 2022 18:01:49 +0100 Subject: [PATCH 1/2] Make extension compatible with @quasar/app-vite --- src/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 296a34b..6e52ed1 100644 --- a/src/index.js +++ b/src/index.js @@ -21,7 +21,12 @@ module.exports = function (api) { // hard dependencies, as in a minimum version of the "quasar" // package or a minimum version of "@quasar/app" CLI api.compatibleWith('quasar', '^1.8.5 || >= 2') - api.compatibleWith('@quasar/app', '^1.0.0 || >= 2') + if (api.hasVite) { + api.compatibleWith('@quasar/app-vite', '^1.0.0-beta.0') + } + else { + api.compatibleWith('@quasar/app', '^1.0.0 || >= 2') + } // Here we extend /quasar.conf.js, so we can add // a boot file which registers our new UI component; From 44bb4c096bfaa199ea7b514baa5718a474610941 Mon Sep 17 00:00:00 2001 From: Error354 Date: Tue, 22 Mar 2022 18:29:55 +0100 Subject: [PATCH 2/2] Optional transpileDependencies --- src/index.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 6e52ed1..031cb3a 100644 --- a/src/index.js +++ b/src/index.js @@ -11,7 +11,9 @@ function extendConf (conf) { conf.boot.push('~quasar-app-extension-vuelidate-rules/src/boot/register-vuelidate-rules.js') // make sure boot & component files get transpiled - conf.build.transpileDependencies.push(/quasar-app-extension-vuelidate-rules[\\/]src/) + if (conf.build.transpileDependencies !== undefined) { // quasar/app-vite does not have transpileDependencies + conf.build.transpileDependencies.push(/quasar-app-extension-vuelidate-rules[\\/]src/) + } }