Skip to content

Commit d2f2ec0

Browse files
fixup! esm: fix erroneous re-initialization of ESMLoader
Antoine fanciness :)
1 parent c9f8fb7 commit d2f2ec0

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

test/es-module/test-esm-initialization.mjs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import '../common/index.mjs';
2-
import fixtures from '../common/fixtures.js';
2+
import * as fixtures from '../common/fixtures.mjs';
33
import assert from 'node:assert';
44
import { spawnSync } from 'node:child_process';
5-
import { fileURLToPath } from 'node:url';
65

76

87
{ // Verify unadulterated source is loaded when there are no loaders
@@ -12,7 +11,7 @@ import { fileURLToPath } from 'node:url';
1211
'--loader',
1312
fixtures.fileURL('es-module-loaders', 'loader-resolve-passthru.mjs'),
1413
'--no-warnings',
15-
fileURLToPath(fixtures.fileURL('es-modules', 'runmain.mjs')),
14+
fixtures.path('es-modules', 'runmain.mjs'),
1615
],
1716
{ encoding: 'utf8' },
1817
);

0 commit comments

Comments
 (0)