Files
meteor/packages/modules-runtime/client.js

18 lines
470 B
JavaScript

meteorInstall = makeInstaller({
// On the client, make package resolution prefer the "browser" field of
// package.json files to the "main" field.
browser: true,
fallback: function(id, parentId, error) {
if (id && id.startsWith('meteor/')) {
var packageName = id.split('/', 2)[1];
throw new Error(
'Cannot find package "' + packageName + '". ' +
'Try "meteor add ' + packageName + '".'
);
}
throw error;
}
});