mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
clean up startup package manifest.
This commit is contained in:
@@ -330,7 +330,7 @@ _.extend(Bundle.prototype, {
|
||||
else
|
||||
canon_where = _.clone(canon_where);
|
||||
canon_where.sort();
|
||||
var canon_where = JSON.stringify(canon_where);
|
||||
canon_where = JSON.stringify(canon_where);
|
||||
|
||||
if (inst.where[canon_where])
|
||||
return; // already used in this environment
|
||||
|
||||
@@ -3,17 +3,7 @@ Package.describe({
|
||||
internal: true
|
||||
});
|
||||
|
||||
// XXX hack -- need a way to use a package at bundle time
|
||||
var _ = require('../../packages/underscore/underscore.js');
|
||||
|
||||
Package.on_use(function (api, where) {
|
||||
where = where || ['client', 'server'];
|
||||
if (!(where instanceof Array))
|
||||
where = [where];
|
||||
|
||||
if (_.indexOf(where, 'client') !== -1)
|
||||
api.add_files('startup_client.js', 'client');
|
||||
|
||||
if (_.indexOf(where, 'server') !== -1)
|
||||
api.add_files('startup_server.js', 'server');
|
||||
Package.on_use(function (api) {
|
||||
api.add_files('startup_client.js', 'client');
|
||||
api.add_files('startup_server.js', 'server');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user