mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
20 lines
698 B
JavaScript
20 lines
698 B
JavaScript
var verifyErrors = Package['modules-runtime'].verifyErrors;
|
|
|
|
meteorInstall = makeInstaller({
|
|
// On the client, make package resolution prefer the "browser" field of
|
|
// package.json over the "module" field over the "main" field.
|
|
browser: true,
|
|
mainFields: ["browser", "module", "main"],
|
|
|
|
fallback: function (id, parentId, error) {
|
|
verifyErrors(id, parentId, error);
|
|
}
|
|
});
|
|
|
|
var Module = Package['modules-runtime'].meteorInstall.Module;
|
|
meteorInstall.Module.prototype.link = Module.prototype.link;
|
|
|
|
// This package should be running after modules-runtime but before modules.
|
|
// We want modules to use our patched meteorInstall
|
|
Package['modules-runtime'].meteorInstall = meteorInstall;
|