Summary
`vite build` emits this warning on the CJS bundle:
```
[MIXED_EXPORTS] Warning: Entry module "src/index.ts" is using named
(including "classifyError", "default", "isSupported", "useCommands", "useVocal")
and default exports together. Consumers of your bundle will have to use
`chunk.default` to access the default export, which may not be what you want.
Use `output.exports: "named"` to disable this warning.
```
The CJS bundle ends with:
```
exports.classifyError=O,exports.default=A,exports.isSupported=g,exports.useCommands=x,exports.useVocal=y;
```
Pure CommonJS consumers (`const Vocal = require('@untemps/react-vocal')`) need `.default` to get the component. TS/ESM consumers with `esModuleInterop` are unaffected.
Action items
Likely not a regression vs. 1.x, but worth confirming before the major bump.
Summary
`vite build` emits this warning on the CJS bundle:
```
[MIXED_EXPORTS] Warning: Entry module "src/index.ts" is using named
(including "classifyError", "default", "isSupported", "useCommands", "useVocal")
and default exports together. Consumers of your bundle will have to use
`chunk.default` to access the default export, which may not be what you want.
Use `output.exports: "named"` to disable this warning.
```
The CJS bundle ends with:
```
exports.classifyError=O,exports.default=A,exports.isSupported=g,exports.useCommands=x,exports.useVocal=y;
```
Pure CommonJS consumers (`const Vocal = require('@untemps/react-vocal')`) need `.default` to get the component. TS/ESM consumers with `esModuleInterop` are unaffected.
Action items
Likely not a regression vs. 1.x, but worth confirming before the major bump.