Skip to content

Commit 5b92635

Browse files
committed
Set typescript config esModuleInterop to false
Enables projects that use this library to also have esModuleInterop set to false (which is the more strict options), improving ease of use.
1 parent 89367aa commit 5b92635

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/resources.node.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ SPDX-License-Identifier: Apache-2.0
1717
Copyright (c) OWASP Foundation. All Rights Reserved.
1818
*/
1919

20-
import path from 'path'
20+
import * as path from 'path'
2121

2222
import { Version } from './spec'
2323

tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
/* Interop Constraints */
7373
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7474
"allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
75-
"esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables `allowSyntheticDefaultImports` for type compatibility. */
75+
"esModuleInterop": false, /* Disable emitting additional JavaScript to ease support for importing CommonJS modules. */
7676
// "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */
7777
"forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */
7878

0 commit comments

Comments
 (0)