Open niksy opened 3 years ago
This is useful so we can:
@rollup/plugin-node-resolve
Use browser field resolving for specific modules (e.g. Browserify module such as process use browser field) and for other rely on main/module/exports.
browser
process
main
module
exports
There are module which have multiple browser-specific entries so this can potentially be harmful.
Consider using enhanced-resolve for this.
enhanced-resolve
This is useful so we can:
@rollup/plugin-node-resolve
and browser entriesUse
browser
field resolving for specific modules (e.g. Browserify module such asprocess
usebrowser
field) and for other rely onmain
/module
/exports
.