canmove, Confirmed users
737
edits
| Line 80: | Line 80: | ||
'''[https://bugzilla.mozilla.org/show_bug.cgi?id=663480 Bug 663480]''' | '''[https://bugzilla.mozilla.org/show_bug.cgi?id=663480 Bug 663480]''' | ||
The SDK automatically includes a dependency on the packages supplied with the SDK such as <code>addon-kit</code> and <code>api-utils</code>. This means that you can <code>require()</code> modules in the SDK such as <code>widget</code> | The SDK automatically includes a dependency on the packages supplied with the SDK such as [https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/packages/addon-kit/addon-kit.html <code>addon-kit</code>] and [https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/packages/api-utils/api-utils.html <code>api-utils</code>]. This means that you can <code>require()</code> modules in the SDK such as [https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/packages/addon-kit/docs/widget.html <code>widget</code>] without having to specify <code>addon-kit</code> as a dependency. | ||
You can also use modules from other packages, such as the packages listed [https://wiki.mozilla.org/Jetpack/Modules here], by including a reference to the package in your <code>package.json</code> file. | You can also use modules from other packages, such as the packages listed [https://wiki.mozilla.org/Jetpack/Modules here], by including a reference to the package in your [https://addons.mozilla.org/en-US/developers/docs/sdk/1.0/dev-guide/addon-development/package-spec.html <code>package.json</code>] file. | ||
However, if you do add any dependencies to <code>package.json</code>, then the SDK will no longer add <code>addon-kit</code> or <code>api-utils</code> automatically, and you must add them manually if you want to include their modules. | However, if you do add any dependencies to <code>package.json</code>, then the SDK will no longer add <code>addon-kit</code> or <code>api-utils</code> automatically, and you must add them manually if you want to include their modules. | ||
'''[https://bugzilla.mozilla.org/show_bug.cgi?id=663048 Bug 663048]''' | '''[https://bugzilla.mozilla.org/show_bug.cgi?id=663048 Bug 663048]''' | ||