Please respect maintainers time by filling in these sections. Your issue will likely be closed without this information.
Vue Version: 3.3.4
Vue Select Version: 4.0.0-beta.6
Describe the bug
The umd build gets recognized as ESM by esbuild/tsup because its file extension is .js and the package.json specifies "type": "module" it should have a .cjs extension to be recognized correctly.
Reproduction Link
Steps To Reproduce
Build a package using vue-select with tsup for node (SSR) in CJS format.
Expected behavior
It builds correctly, instead, due to incorrectly assuming the UMD build is ESM, the module.exports statement will be left in the bundle and will overwrite the real module.exports.
Describe the bug The umd build gets recognized as ESM by esbuild/tsup because its file extension is
.js
and thepackage.json
specifies"type": "module"
it should have a.cjs
extension to be recognized correctly.Reproduction Link
Steps To Reproduce
tsup
for node (SSR) in CJS format.Expected behavior It builds correctly, instead, due to incorrectly assuming the UMD build is ESM, the
module.exports
statement will be left in the bundle and will overwrite the realmodule.exports
.