Nedim Salkić

Results 127 comments of Nedim Salkić

By running `pnpm tsc app.ts` typescript's default compiler options are used. This still emits the `app.js` file, but it prints out problems typescript finds in the dependencies - some due...

@great9 can you share your `tsconfig.json` contents with us and the _full_ error log that gets produced?

Thanks, can you set `skipLibCheck` to `true` and see if it fixes it?

The quick answer is it'll work because `skipLibCheck` is a stricter setting for compile-time checks and it doesn't affect the runtime. I'd have to do a deeper diver to understand...

I did an investigation using our internal `demo-react-vite` app, because `nextjs` splits things up and it's not as straightforward to analyze the impact of the package as it is in...

> It looks like the ethers addition in 0.63.0 added 200kb+ gzipped! I already investigated it in #1450. Should've cross-referenced here before closing it, though. Sorry about that.

> Have you compared the demo-react-vite with and without fuels for a complete check? I removed both `@fuels/vm-asm` and `fuels` and got a bundle size of 46.1 kB. I then...

Another possibility(?) is to use [dynamic imports](n-US/docs/Web/JavaScript/Reference/Operators/import). I don't currently know the full implications of such an approach, but doing something like this: ```ts class Provider { static async create(...)...

It seems that integrating WASM packages is a no-go for now as the effect on bundle size is prohibitive. I'm closing this issue as the investigation is finished.

@Dhaiwat10 summed it up nicely in https://github.com/FuelLabs/fuels-ts/pull/1867#issuecomment-1993198460. Typescript inferring `string[]` instead of `[string]` for `['0xabc']` is default behavior, but it'd be superseded by the generated typegen type which would constrain...