diff --git a/src/index.js b/src/index.js index 296a34b..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/) + } } @@ -21,7 +23,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;