Skip to content

Commit 040af1a

Browse files
kirjsthePunderWoman
authored andcommitted
fix(docs-infra): add moduleResolution to TypeScript compiler options for playground
This fixes signal forms, but idk if it breas other things
1 parent 1289371 commit 040af1a

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

adev/src/app/editor/code-editor/workers/utils/compiler-opts.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,13 @@
66
* found in the LICENSE file at https://angular.dev/license
77
*/
88

9-
export const getCompilerOpts = (ts: {ScriptTarget: {ES2021: number; ES2020: number}}) => ({
9+
export const getCompilerOpts = (ts: {
10+
ScriptTarget: {ES2021: number; ES2020: number};
11+
ModuleResolutionKind: {Bundler: number};
12+
}) => ({
1013
target: ts.ScriptTarget.ES2021,
1114
module: ts.ScriptTarget.ES2020,
15+
moduleResolution: ts.ModuleResolutionKind.Bundler,
1216
lib: ['es2021', 'es2020', 'dom'],
1317
esModuleInterop: true,
1418
experimentalDecorators: true,

0 commit comments

Comments
 (0)