Skip to content

Commit 814fc6b

Browse files
committed
fix(web-scripts): fix type declaration output by specifying module
1 parent ab0c815 commit 814fc6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/web-scripts/src/Tasks/BuildTask.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ async function buildTypes(task: BuildTaskDesc): Promise<string> {
5959
'--emitDeclarationOnly',
6060
'--noEmit',
6161
'false',
62+
'--module',
63+
'CommonJS',
6264
...task.restOptions,
6365
];
6466
const stdout = await spawn(cmd, args, { stdio: 'inherit' });

0 commit comments

Comments
 (0)