Skip to content

Commit 385db77

Browse files
Disabled TypeScript's "esModuleInterop" flag where possible
1 parent 44412c4 commit 385db77

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

examples/typescript/tsconfig.json

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"target": "esnext",
44
"module": "esnext",
55
"moduleResolution": "node",
6-
"esModuleInterop": true,
76
"sourceMap": true,
87
"newLine": "LF",
98
},

src/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// tslint:disable: no-default-export
2-
import convert from "convert-source-map";
2+
import * as convert from "convert-source-map";
33
import { createInstrumenter, RawSourceMap } from "istanbul-lib-instrument";
4-
import loaderUtils from "loader-utils";
4+
import * as loaderUtils from "loader-utils";
55
import mergeSourceMap from "merge-source-map";
6-
import path from "path";
6+
import * as path from "path";
77
import validateOptions from "schema-utils";
88
import { loader } from "webpack";
9-
import optionsSchema from "./options-schema.json";
9+
import * as optionsSchema from "./options-schema.json";
1010
import { defaultOptions, Options } from "./options.js";
1111

1212
/**

tsconfig.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"target": "esnext",
44
"module": "commonjs",
55
"moduleResolution": "node",
6-
"esModuleInterop": true,
6+
"esModuleInterop": true, // This is necessary due to a type definition bug in "schema-utils"
77
"resolveJsonModule": true,
88
"lib": [
99
"esnext",

0 commit comments

Comments
 (0)