primevue-nuxt-module
primevue-nuxt-module copied to clipboard
fix: resolve naming conflicts
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