rsnext/packages
OJ Kwon d93231eb19
feat(next-swc): report native bindings load err code (#52570)
Related: https://github.com/vercel/next-telemetry/pull/106

We collect wasm fallback reason (`enabled`, `fallback`, ..) but it is bit unclear why we came to reach `fallback` state for the wasm. This PR expands current reporting to include native bindings error code if node.js returns it to understand categories better. Mostly this would be in between ERR_DLOPEN or ERR_MODULE_NOT_FOUND, but worth to confirm if the guess is correct. For the targets have multiple triples (gnu / musl), we collect only the last attempt's error code.

There are 2 custom variants of the string value other than err code itself: if thrown error doesn't have code (unlikely, but) it'll be `unknown`. for the targets we falls back to wasm immediately (freebsd, for example) it'll be marked as unsupported_target.

One thing to note is this does not collect if wasm binding fails to load: this is strictly for native bindings load error.
2023-07-12 16:30:20 +00:00
..
create-next-app v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
eslint-config-next v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
eslint-plugin-next v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
font v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next feat(next-swc): report native bindings load err code (#52570) 2023-07-12 16:30:20 +00:00
next-bundle-analyzer v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-codemod v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-env v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-mdx v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-plugin-storybook v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-polyfill-module v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-polyfill-nomodule v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
next-swc Turbopack: App Router build POC (#52036) 2023-07-12 11:26:48 +02:00
react-dev-overlay v13.4.10-canary.4 2023-07-12 06:45:31 +00:00
react-refresh-utils v13.4.10-canary.4 2023-07-12 06:45:31 +00:00