Closed DanielleHuisman closed 6 months ago
That said, can you tell me a little bit more about how confident you are that unbuild's output will work with generally everybody's setup? Thing is, that's microbundle's promise too (though clearly that wasn't correct) and I hadn't heard of unbuild before. Also their README is extremely light on details or even its raison d'etre. Any context would be warmly appreciated!
Unbuild is a small wrapper around the Rollup tool to reduce configuration. I don't really have an opinion on using microbundle or unbuild, but I know unbuild worked well for fixing a similar issue in vite-plugin-graphql-codegen.
Fixes #8.
By using unbuild, this package should work for both ESM and CJS environments. I published the new package build for testing under
@daniellehuisman/country-flag-emoji-polyfill
(please don't use this package as a dependency in production, but wait for this PR to be merged).