Skip to content

Commit

Permalink
fixup! esm: fix erroneous re-initialization of ESMLoader
Browse files Browse the repository at this point in the history
Antoine fanciness :)
  • Loading branch information
JakobJingleheimer committed Jul 10, 2022
1 parent c9f8fb7 commit d2f2ec0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/es-module/test-esm-initialization.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import '../common/index.mjs';
import fixtures from '../common/fixtures.js';
import * as fixtures from '../common/fixtures.mjs';
import assert from 'node:assert';
import { spawnSync } from 'node:child_process';
import { fileURLToPath } from 'node:url';


{ // Verify unadulterated source is loaded when there are no loaders
Expand All @@ -12,7 +11,7 @@ import { fileURLToPath } from 'node:url';
'--loader',
fixtures.fileURL('es-module-loaders', 'loader-resolve-passthru.mjs'),
'--no-warnings',
fileURLToPath(fixtures.fileURL('es-modules', 'runmain.mjs')),
fixtures.path('es-modules', 'runmain.mjs'),
],
{ encoding: 'utf8' },
);
Expand Down

0 comments on commit d2f2ec0

Please sign in to comment.