mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
- allow `api.use(package, {options})` without where
- fix showdown to use a weak dependency
13 lines
392 B
JavaScript
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');
|
|
});
|