We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ab0558 commit 96856baCopy full SHA for 96856ba
1 file changed
src/Resolver.js
@@ -273,9 +273,9 @@ class Resolver {
273
}
274
275
// libraries like d3.js specifies node.js specific files in the "main" which breaks the build
276
- // we use the "module" or "browser" field to get the full dependency tree if available.
+ // we use the "browser" or "module" field to get the full dependency tree if available.
277
// If this is a linked module with a `source` field, use that as the entry point.
278
- let main = [pkg.source, pkg.module, browser, pkg.main].find(
+ let main = [pkg.source, browser, pkg.module, pkg.main].find(
279
entry => typeof entry === 'string'
280
);
281
0 commit comments