mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
It's very useful to be able to include code only in production. It's useful for React integration, but presumably also for many apps. * Add prodOnly boolean flag alongside debugOnly in Package.describe * Packages the set prodOnly to true auto-depend on isobuild:prod-only (making them error in the old tool where prodOnly isn't supported) * The `includeDebug` boolean build option is replaced by a string named buildMode, which can be 'development' or 'production', just like minifyMode. Tested by self-test.
10 lines
154 B
JavaScript
10 lines
154 B
JavaScript
Package.describe({
|
|
name: 'debug-only',
|
|
debugOnly: true
|
|
});
|
|
|
|
Package.onUse(function(api) {
|
|
api.addFiles('debug-only.js');
|
|
api.export('Debug');
|
|
});
|