Hi Jay,
Sure - so, like most TypeScript modules, the entry point for this one is just JavaScript - it includes extracted typings in a .ts
file, but given that no JavaScript runtimes support TypeScript, it doesn’t point to TypeScript. That said, the file that its package.json points to uses CommonJS - you can decipher this y going to https://unpkg.com/@creditkarma/thrift-parser@1.0.4/, checking the path in package.json
, and then clicking to the file mentioned.
What I’ve found that works for this one is using bundle.run, though I’m pointing it to 1.0.3 rather than 1.0.4 - bundle.run had trouble bundling the newest revision:
require('https://bundle.run/@creditkarma/thrift-parser@1.0.3')
Perhaps by tomorrow bundle.run recovers from that instability and can bundle 1.0.4.
- Tom