Skip to content

Commit b759630

Browse files
committed
fix: tsconfig path
1 parent dd69537 commit b759630

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/module-loader/src/index.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,17 @@ export async function compileModule(
122122

123123
const buildOptions: BuildOptions = {
124124
input: target.file,
125+
125126
output: {
126127
file: temp,
127128
format: 'cjs',
128129
esModule: true,
129130
},
130-
tsconfig: existsSync(tsconfig) ? tsconfig : undefined,
131+
132+
resolve: {
133+
tsconfigFilename: existsSync(tsconfig) ? tsconfig : undefined,
134+
},
135+
131136
platform: 'node',
132137
logLevel: 'silent',
133138
plugins: [nodeExternal()],

0 commit comments

Comments
 (0)