Age | Commit message (Collapse) | Author | |
---|---|---|---|
2024-11-01 | fix: improved support for cjs and cts modules (#26558) | David Sherret | |
* cts support * better cjs/cts type checking * deno compile cjs/cts support * More efficient detect cjs (going towards stabilization) * Determination of whether .js, .ts, .jsx, or .tsx is cjs or esm is only done after loading * Support `import x = require(...);` Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com> | |||
2024-09-19 | fix(node): Don't error out if we fail to statically analyze CJS re-export ↵ | Nathan Whitaker | |
(#25748) Fixes rsbuild running in deno. You can look at the test to see what was failing, the gist is that we were trying to statically analyze the re-exports of a CJS script, and if we couldn't find the source for the re-exported file we would fail. Instead, we should just treat these as if they were too dynamic to analyze, and let it fail (or succeed) at runtime. This aligns with node's behavior. |