diff --git a/src/index.ts b/src/index.ts index f239188..9a6a23d 100644 --- a/src/index.ts +++ b/src/index.ts @@ -31,7 +31,6 @@ export function convertTsConfig( jsxFactory = 'React.createElement', jsxFragmentFactory = 'React.Fragment', jsxImportSource = 'react', - strict = false, alwaysStrict = false, noImplicitUseStrict = false, paths, @@ -44,7 +43,6 @@ export function convertTsConfig( sourceMaps: sourceMap, module: { type: ['commonjs', 'amd', 'umd'].includes(module) ? module : 'commonjs', - strict, strictMode: alwaysStrict || !noImplicitUseStrict, noInterop: !esModuleInterop, } as swcType.ModuleConfig, diff --git a/test/index.ts b/test/index.ts index 2410ceb..eaba6ac 100644 --- a/test/index.ts +++ b/test/index.ts @@ -33,3 +33,9 @@ test('convert tsconfig file', (t) => { t.end() }) + +test('ignores strict from tsconfig', (t) => { + const result = convert() + t.equal(result.module?.strict, undefined) + t.end() +}) \ No newline at end of file