Commit d232b6f
committed
Add integration test with Webpack
To verify that driver can be used in a browser app. This makes sure no
NodeJS APIs are used unconditionally. Webpack build fails for such
APIs at compile time. Webpack uses "browser" field from package.json to
replace Node components with browser components. All environment-dependent
code should only be exposed from `node/index.js` and `browser/index.js`.1 parent 7bcac41 commit d232b6f
File tree
4 files changed
+1148
-65
lines changed- test/v1
4 files changed
+1148
-65
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
| 140 | + | |
142 | 141 | | |
143 | 142 | | |
144 | 143 | | |
145 | | - | |
146 | | - | |
147 | | - | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments