Skip to content
forked from madler/zlib

Commit 7c14d5d

Browse files
committed
fix: remove allowImportingTsExtensions for build compatibility
1 parent 8cdb57e commit 7c14d5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
ZlibMemoryError,
1414
ZlibCompressionError,
1515
ZlibInitError
16-
} from './types.ts'
16+
} from './types.js'
1717
import type {
1818
ZlibModule,
1919
ZlibOptions,
@@ -22,7 +22,7 @@ import type {
2222
ZlibLoadingOptions,
2323
CompressionPerformance,
2424
BenchmarkResult
25-
} from './types.ts'
25+
} from './types.js'
2626

2727
export default class Zlib {
2828
private module: ZlibModule | null = null

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"target": "ES2022",
44
"lib": ["ES2022", "WebWorker"],
55
"module": "ESNext",
6-
"moduleResolution": "Node",
7-
"allowImportingTsExtensions": true,
6+
"moduleResolution": "Bundler",
7+
"esModuleInterop": true,
88
"declaration": true,
99
"declarationMap": true,
1010
"outDir": "dist",

0 commit comments

Comments
 (0)