Skip to content

Commit 9b16099

Browse files
committed
comment fix/clarifications [ci skip]
1 parent 0660bbb commit 9b16099

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
/**
2020
* IBM Watson Speech JavaScript SDK
2121
*
22-
* Top-level module includes the version, a [fetch](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) pollyfill, and both of the speech libraries.
22+
* Top-level module includes the version, and both of the speech libraries.
2323
*
2424
* If using a bundler such as browserify, you may optionally include sub-modules directly to reduce the size of the final bundle
2525
*
@@ -29,6 +29,10 @@
2929
/**
3030
* Release version
3131
*
32+
* (for pre-built bundles only - if using via npm, read the package.json to determine the version)
33+
*
34+
* (This previously did `require('package.json').version` which works in browserify but causes webpack to choke with confusing errors unless extra plugins are included)
35+
*
3236
* envify automatically rewrites this during the release process
3337
*/
3438
exports.version = process.env.TRAVIS_BRANCH;

0 commit comments

Comments
 (0)