Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added compatibility with quasar/app-vite #16

Merged
merged 2 commits into from
Mar 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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