File tree Expand file tree Collapse file tree
dev-packages/bun-integration-tests/node-suites Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ const NODE_SUITE_FILE = /[\\/]node-integration-tests[\\/](suites|utils)[\\/]/;
77
88// Bun's runtime `onResolve` does not see bare package specifiers, so ES modules are rewritten on
99// load. `onLoad` output for a CommonJS file does not run, so those files keep their source.
10- const NODE_SUITE_ESM_FILE = / [ \\ / ] n o d e - i n t e g r a t i o n - t e s t s [ \\ / ] ( s u i t e s | u t i l s ) [ \\ / ] (? ! \b n o d e _ m o d u l e s \b ) .* \. ( m j s | t s ) $ / ;
10+ // Dependencies in `node_modules` are skipped: Bun treats a module returned from `onLoad` as async,
11+ // and a CommonJS `require()` of it then fails.
12+ const NODE_SUITE_ESM_FILE =
13+ / [ \\ / ] n o d e - i n t e g r a t i o n - t e s t s [ \\ / ] ( s u i t e s | u t i l s ) [ \\ / ] (? ! (?: .* [ \\ / ] ) ? n o d e _ m o d u l e s [ \\ / ] ) .* \. ( m j s | t s ) $ / ;
1114const SENTRY_NODE_SPECIFIER = / ( [ ' " ] ) @ s e n t r y \/ n o d e \1/ g;
1215
1316plugin ( {
You can’t perform that action at this time.
0 commit comments