michael42

Results 11 comments of michael42

Looking at the source (rather than the distributed package), maybe using: ```json "exports": { ".": { "import": { "types": "./types/index.d.mts", "default": "./dist/es/index.js" }, "default": { "types": "./types/index.d.ts", "default": "./dist/cjs/index.js" }...

@dzearing: > I don't think the `d.mts` vs `d.ts` extension in the typing file changes behavior. It does (when not specifying `type: "module"`), at least the default export behaves differently....

Running my (hanging) build (with an empty file to bundle) using `why-is-node-running` produces this output: ``` There are 13 handle(s) keeping the process running # Timeout node:internal/async_hooks:205 node:internal/async_hooks:495 node:internal/timers:162 node:internal/timers:196...

I'll probably give it a shot sometime soon. For now, I'm back to using the `spdy` module, because of `http-proxy-middleware` issues and random uncaughtException events.

The commit only sets `Connection: close` if no agent is used. Setting an agent worked fine for me: ```javascript const agent = new http.Agent({keepAlive: true}) const proxyServer = httpProxy.createProxyServer() app.use("/api/db",...

This also seems to affect subsequent assignments: ```js let x = 0 x = 1 x = 2 console.log(x) ``` is minified by `terser --toplevel --compress --mangle -- ../test.js` to...

Awesome, thanks, that seems to work great. I tried adding some `/** @__PURE__ */`-comments, too, but didn't get good results with parcel and gave up on that approach.

Awesome, thanks for the fix that will presumably be released with the next Node 18 version. :tada: Does anyone know if/how one can implement a [robust graceful shutdown](https://github.com/nodejs/node/pull/48383#issuecomment-2032828502) with Node...

This also causes a different error, for example in this [minimal demo project](https://github.com/michael42/babel-plugin-parameter-decorator-error): ```js function test(target, property, descriptor) { } class Greeter { @test greet(@test name) { } } ```...

Interestingly, if I take the internal compiled JS with source map from `@vue/vue3-jest`, put it into `.js` and `.js.map` files, link them with `//# sourceMappingURL` and import the compiled files...