Skip to content

Commit

Permalink
Merge pull request #16 from error354/quasar-vite
Browse files Browse the repository at this point in the history
Added compatibility with quasar/app-vite
  • Loading branch information
ramsesmoreno authored Mar 22, 2022
2 parents 7cb922a + 44bb4c0 commit f3220ba
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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/)
}

}

Expand All @@ -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;
Expand Down

0 comments on commit f3220ba

Please sign in to comment.