[COMPASS-2760] make bson-compilers work in the browser Created: 18/Apr/18 Updated: 29/Oct/23 Resolved: 02/May/18 |
|
| Status: | Closed |
| Project: | Compass |
| Component/s: | Export to Language |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Irina Shestak (Inactive) | Assignee: | Unassigned |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Epic Link: | COMPASS-2309 |
| Story Points: | 5 |
| Description |
|
currently to consume this package, you need to be running a node environment as all the symbol tables get joined dynamically with 'path'. Need to consider a browserify transform that gets triggered on 'npm prepublish' and packages up a pure javascript module. https://www.npmjs.com/package/path-browserify and https://www.npmjs.com/package/brfs will probably do the trick. |