You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Additionally, when importing the entire library, the `shebang-loader` package is need and must be configured
53
+
in webpack.config.js:
54
+
55
+
```js
56
+
module: {
57
+
rules: [{
58
+
test:/JSONStream/,
59
+
use:'shebang-loader'
60
+
}]
61
+
}
62
+
```
35
63
36
64
## Webpack configuration
37
65
66
+
The `ibm-watson` Node SDK version 5+ should work out of the box with most bundlers, including webpack. For versions below 5.0.0, the following configurations may be required to leverage the SDK in client environments.
67
+
38
68
In most cases, you will want the following in your configuration:
39
69
40
70
@@ -50,33 +80,4 @@ In most cases, you will want the following in your configuration:
50
80
51
81
Several services use the `fs` library, which won't work in browser environments, and the `request` library loads `fs`,
52
82
`net`, and `tls`, but shouldn't need any of them for basic usage because webpack automatically includes
0 commit comments