Skip to content

Commit c942d9f

Browse files
fix: linting
Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
1 parent 12132fa commit c942d9f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/modules/cjs/loader.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1816,7 +1816,7 @@ Module._extensions['.js'] = function(module, filename) {
18161816
const { source, format: loadedFormat } = loadSource(module, filename, format);
18171817
// Function require shouldn't be used in ES modules when require(esm) is disabled.
18181818
if ((loadedFormat === 'module' || loadedFormat === 'module-typescript') &&
1819-
!getOptionValue('--experimental-require-module')) {
1819+
!getOptionValue('--experimental-require-module')) {
18201820
const err = getRequireESMError(module, pkg, source, filename);
18211821
throw err;
18221822
}

0 commit comments

Comments
 (0)