Commit 46d43d0
committed
Add wasm+npm package
This lets us compile the lib into wasm and adds a npm wrapper package for it
I had to rearrange the code slightly to split out any methods using wasm incompatible types. Not sure if there's a better way to do this1 parent 4b41c26 commit 46d43d0
7 files changed
Lines changed: 3989 additions & 45 deletions
File tree
- crates/string-offsets
- js
- test
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
12 | 18 | | |
13 | 19 | | |
14 | | - | |
| 20 | + | |
0 commit comments