mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Doc export from debugOnly and prodOnly packages
Address lack of documentation mentioned in issue #3639.
This commit is contained in:
committed by
Sashko Stubailo
parent
db86caf23e
commit
38643668cd
@@ -436,7 +436,11 @@ _.extend(PackageAPI.prototype, {
|
||||
* @instance
|
||||
* @summary Export package-level variables in your package. The specified
|
||||
* variables (declared without `var` in the source code) will be available
|
||||
* to packages that use this package.
|
||||
* to packages that use your package. If your package sets the `debugOnly`
|
||||
* or `prodOnly` options to `true` when it calls `Package.describe()`, then
|
||||
* packages that use your package will need to use
|
||||
* `Package["package-name"].ExportedVariableName` to access the value of an
|
||||
* exported variable.
|
||||
* @locus package.js
|
||||
* @param {String|String[]} exportedObjects Name of the object to export, or
|
||||
* an array of object names.
|
||||
|
||||
Reference in New Issue
Block a user