browser section package.json is used to expand a list of dependent files. The downstream build tool would normally do the right thing and use the browser section for bundling correctly. I tested the bundling itself on esbuild and WebPack, and it works correctly. All that's needed is to make sure the files are there.
browser
sectionpackage.json
is used to expand a list of dependent files. The downstream build tool would normally do the right thing and use thebrowser
section for bundling correctly. I tested the bundling itself on esbuild and WebPack, and it works correctly. All that's needed is to make sure the files are there.