Skip to content

Commit 4c47aec

Browse files
authored
Merge pull request #243 from candrews/esModuleInterop-false
tsconfig: default `esModuleInterop` & `allowSyntheticDefaultImports`
2 parents 89367aa + f004a5f commit 4c47aec

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/resources.node.ts

+1-1
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

+2-2
Original file line numberDiff line numberDiff line change
@@ -71,8 +71,8 @@
7171

7272
/* Interop Constraints */
7373
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
74-
"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. */
74+
// "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. */
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)