Skip to content

Commit 76f46bc

Browse files
alan-agius4clydin
authored andcommitted
fix(@schematics/angular): add module option in library tsconfig
When not specified the `commonjs` will be used which will cause erros when consuming the library `Module not found: Error: Can't resolve ' commonjs-proxy:../file` ng-packagr/ng-packagr#944 Closes #11255
1 parent ffb01c5 commit 76f46bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/schematics/angular/library/files/__projectRoot__/tsconfig.lib.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"compilerOptions": {
44
"outDir": "<%= relativePathToWorkspaceRoot %>/out-tsc/lib",
55
"target": "es2015",
6+
"module": "es2015",
67
"moduleResolution": "node",
78
"declaration": true,
89
"sourceMap": true,

0 commit comments

Comments
 (0)