Skip to content

Conversation

@susnux
Copy link
Collaborator

@susnux susnux commented May 8, 2025

This allows in theory (tested) to also use this library with Vue 2 apps. For those the bundle size will increase as Vue needs to bundled two times, but if you use Vue 3 all works as intended (only bundled once so small asset size).

This allows us to drop maintenance on v5 as soon as Nextcloud 31 gets EOL.

@susnux susnux requested review from ShGKme, artonge and st3iny May 8, 2025 09:49
@susnux susnux added enhancement New feature or request 3. to review Waiting for reviews labels May 8, 2025
Copy link
Contributor

@st3iny st3iny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tested two Vue 2 apps using the shared webpack config. I had to add the following line to webpack.config.js to make it work:

// Allow two versions of Vue to make @nextcloud/password-confirmation work
delete webpackConfig.resolve.alias.vue$

I couldn't spot a significant difference in bundle size 🤷‍♂️

This allows in theory (tested) to also use this library with Vue 2 apps.
For those the bundle size will increase as Vue needs to bundled two
times, but if you use Vue 3 all works as intended (only bundled once so
small asset size).

This allows us to drop maintenance on v5 as soon as Nextcloud 31 gets
EOL.

Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux force-pushed the chore/vue-2-compatibility branch from 0d01063 to 458eff9 Compare May 11, 2025 12:45
Signed-off-by: Ferdinand Thiessen <[email protected]>
@susnux susnux merged commit 1db8eaf into main May 11, 2025
8 checks passed
@susnux susnux deleted the chore/vue-2-compatibility branch May 11, 2025 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants