mirror of
https://github.com/denoland/deno.git
synced 2024-11-29 16:30:56 -05:00
f1ba266613
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.
3 lines
70 B
TypeScript
3 lines
70 B
TypeScript
import assert from "./node_modules/foo.cjs";
|
|
|
|
assert.equal(1 + 1, 2);
|