Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct rollup to bundle all but core (#846)
My rollup config was invalid, but clumsily working until a recent change in how we defined the event emitter type. The impact was the the bundled types for the web imported `from 'events'` instead of bundling it. This PR fixes the mis-configuration (see comments). Here is a screenshot showing the bundled types in the dist now (notice the import is gone and the emitter is in-lined, no other changes are present): ![image](https://github.com/open-feature/js-sdk/assets/25272906/8728911d-7c72-4d53-8dc2-d748837a616e) In server, this type is available from node, so we DON'T need to bundle it, and in fact, SHOULD import it. This is easily done by importing it like `from 'node:events'`. I don't think it would be a problem if we bundled it anyway, but this is more correct. Fixes: #845 Signed-off-by: Todd Baert <[email protected]>
- Loading branch information