You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently both ESM and CJS are exported but they do not share state
That means the exported Symbol('carousel') can have 3 different instances (because there is also a CJS minified version) and causes issue if one component is imported from ESM and the other one from CJS
The text was updated successfully, but these errors were encountered:
Ok the issue is not actually because of the dual package hazard
The injection key is bundled twice in the same file, eg in dist/carousel.es.js
// Use a symbol for inject provide to avoid any kind of collision with another lib
// https://vuejs.org/guide/components/provide-inject#working-with-symbol-keys
const injectCarousel$1 = Symbol('carousel');
// Use a symbol for inject provide to avoid any kind of collision with another lib
// https://vuejs.org/guide/components/provide-inject#working-with-symbol-keys
const injectCarousel = Symbol('carousel');
One is exported, the second one is used within the components
Seems in the merge from #435 the injectSymbols file got duplicated in both @/shared/injectSymbols.ts and @/injectSymbols.ts
Currently both ESM and CJS are exported but they do not share state
That means the exported
Symbol('carousel')
can have 3 different instances (because there is also a CJS minified version) and causes issue if one component is imported from ESM and the other one from CJSThe text was updated successfully, but these errors were encountered: