Skip to content

Commit

Permalink
feat(builtin): add browser to rollup mainFields
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian Wiles authored and alexeagle committed Aug 17, 2019
1 parent 0e7df6b commit e488cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/rollup/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ const config = {
resolveId: resolveBazel,
},
nodeResolve({
mainFields: ['es2015', 'module', 'jsnext:main', 'main'],
mainFields: ['browser', 'es2015', 'module', 'jsnext:main', 'main'],
jail: process.cwd(),
customResolveOptions: {moduleDirectory: nodeModulesRoot}
}),
Expand Down

0 comments on commit e488cb6

Please sign in to comment.