mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
@@ -667,6 +667,9 @@
|
||||
|
||||
- `Meteor.callAsync()`
|
||||
|
||||
- `meteor`:
|
||||
- Added `Meteor.isDebug` to execute code in debug builds, activated with the --inspect mode.
|
||||
|
||||
- `minifier-css`: (2.9+)
|
||||
|
||||
- `CssTools.minifyCssAsync()`
|
||||
|
||||
@@ -1,3 +1,19 @@
|
||||
if (Meteor.isServer) {
|
||||
if (typeof __meteor_runtime_config__ === 'object') {
|
||||
__meteor_runtime_config__.debug =
|
||||
!!process.env.NODE_INSPECTOR_IPC ||
|
||||
!!process.env.VSCODE_INSPECTOR_OPTIONS ||
|
||||
process.execArgv.some(function(_arg) {
|
||||
return /^--(inspect|debug)(-brk)?(=\d+)?$/i.test(_arg);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Meteor.isDebug = Meteor.isClient
|
||||
? typeof window === 'object' && !!window.__meteor_runtime_config__.debug
|
||||
: typeof __meteor_runtime_config__ === 'object' &&
|
||||
!!__meteor_runtime_config__.debug;
|
||||
|
||||
var suppress = 0;
|
||||
|
||||
// replacement for console.log. This is a temporary API. We should
|
||||
@@ -61,4 +77,3 @@ Meteor._suppress_log = function (count) {
|
||||
Meteor._suppressed_log_expected = function () {
|
||||
return suppress !== 0;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user