Files
meteor/packages/json/package.js
David Glasser 25a3afff54 - drop where from all on_use/on_test (it is no longer being passed in)
- allow `api.use(package, {options})` without where
- fix showdown to use a weak dependency
2013-07-25 18:54:40 -07:00

13 lines
392 B
JavaScript

Package.describe({
summary: "Provides JSON.stringify and JSON.parse for older browsers",
internal: true
});
// We need to figure out how to serve this file only to browsers that
// don't have JSON.stringify (eg, IE7 and earlier -- or is that IE8?)
Package.on_use(function (api) {
// Node always has JSON; we only need this in some browsers.
api.add_files('json2.js', 'client');
});