Ernest Badu

Results 6 comments of Ernest Badu

This isn't an SST issue - The `@libsql/client/web` imports some code which depends on`node:http` which esbuild doesn't handle well. What worked for me, _somehow_, was setting the [`platform`](https://esbuild.github.io/api/#platform) option in...

You then also need to add `external: ['node:process']` to the esbuild config. What I usually do is externalise every builtin module so I don't run into this: ```typescript import {...

I don't think you should - you still want the module bundled, just not the node modules it depends on. If you try this I'd expect to see a module...

If anyone is still interested, I fixed it by using `declare`. Using the original example, replace `public` with the `declare` keyword: ```typescript import * as pulumi from "@pulumi/pulumi"; import {...

I'd rather have coverage for all my source files so I went with adding the Svelte plugin to the root `vitest.config.ts`. It worked in the repro but in my actual...

After some more testing, it seems adding the plugin to the root breaks anything that doesn't have exactly the correct package exports. For example, I have a package using [`unplugin-icons`](https://github.com/unplugin/unplugin-icons)...