primefaces / primevue-nuxt-module

MIT License
73 stars 11 forks source link

fix: resolve naming conflicts #74

Open rxMATTEO opened 1 month ago

rxMATTEO commented 1 month ago

Hey 🖐. When i worked with on custom passthrough preset, i've noticed, when i passed those options in my nuxt.config:

    importTheme: { from: '@/primevue-theme/index.mjs' },
    importPT: { from: '@/primevue-theme/passthrough.mjs', as: 'pt' },

it's caused an error, because in your module registration you already provided that name, so it's throwing an ReferenceError, because pt is already declared. So i used the object spread to fix it.

Here is little demo of bug: https://codesandbox.io/p/github/rxMATTEO/primevue-naming-bug/main