Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Prefer "main" field of package.json over "module" in legacy bundle. #10765
Before Meteor 1.8.2, all bundles avoided using the
During the development of Meteor 1.8.2, we have tried several different strategies to begin using the
While everything appeared to be working from a logical standpoint, the practical reality is that many npm packages ship dangerously modern syntax like
This PR reverses the precedence of
#10658 (comment) #10658 (comment) As usual, changes to module resolution logic need to happen in parallel in tools/isobuild/resolver.ts and in packages/modules-runtime. However, thanks to the modern/legacy system, it's easy to make the modules-runtime package behave exactly the way(s) we want in the server, modern client, and legacy client bundles.