We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a93b5b9 commit 9514168Copy full SHA for 9514168
1 file changed
packages/ngtools/webpack/src/ivy/loader.ts
@@ -83,6 +83,9 @@ export function angularWebpackLoader(
83
const relDir = path.relative(fileEmitter.compilerOptions.baseUrl, target);
84
target = path.join(fileEmitter.compilerOptions.declarationDir, relDir);
85
}
86
+ if (!fs.existsSync(path.dirname(target))) {
87
+ fs.mkdirSync(path.dirname(target), { recursive: true });
88
+ }
89
fs.writeFileSync(target, result.declaration);
90
91
callback(undefined, resultContent, resultMap);
0 commit comments