Describe the Bug
It looks like TypeScript is compiled with the following options:
compilerOptions: {
module: 'CommonJS',
moduleResolution: 'node',
}
See https://github.com/just-jeb/angular-builders/blob/master/packages/common/src/load-module.ts#L23
The default module resolution in Angular is now "bundler" and I had my app tsconfig set as such. The docs make you think that the tsconfig for your app is used, but it is not for these options. This caused me compilation errors which were difficult to understand.
Describe the Bug
It looks like TypeScript is compiled with the following options:
See https://github.com/just-jeb/angular-builders/blob/master/packages/common/src/load-module.ts#L23
The default module resolution in Angular is now "bundler" and I had my app tsconfig set as such. The docs make you think that the tsconfig for your app is used, but it is not for these options. This caused me compilation errors which were difficult to understand.