Marcel Laverdet

Results 219 comments of Marcel Laverdet

You would use ExternalCopy for that https://github.com/laverdet/isolated-vm#class-externalcopy-transferable

You can also use copy:true https://github.com/laverdet/isolated-vm#transferoptions

Off topic but you should totally use TypeScript. You're coding with one hand behind your back my friend. Edit: Why are you booing me? I'm right!

> Does anyone have a pointer to THE guide for packaging a TypeScript module to support all consumers, whether TS/require/mjs? I would really like to fix this for good. :)...

@beaugunderson I'm finding it doesn't work at all, under any circumstance. The distributed package only includes TypeScript source files, not the built js files: ``` -> % npm init -y...

@rafagsiqueira No, the `exports` change needs to wait for a semver major but Apollo hasn't released a major version in 4 years. My guess is that the team is still...

Thanks @mems, I patched this locally and it works: ```diff diff --git a/dist/esm/index.js b/dist/esm/index.js index 5f01ddfca542c54ffedced4d4489aff4843d6067..2180bc326bd27c4c0d088aa06af185aadbd0b22b 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -1,6 +1,6 @@ import Browserslist from 'browserslist'; import...

@tolmasky resolution and fetching are separate though. You need to resolve a specifier into a URL which allows returning the same module binding in the case multiple modules import the...

> Custom hooks allows you work with non-JS files, e.g. you can make import './file.ts' with custom hooks, and I don't think anyone will complain that the content of file.ts...