New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(ngcc): fix compilation of ChangeDetectorRef
in pipe constructors
#38892
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -99,7 +99,14 @@ function compileIntoFlatPackage( | |
program.emit(); | ||
}; | ||
|
||
emit({declaration: true, module: options.module, target: options.target, lib: []}); | ||
emit({ | ||
declaration: true, | ||
emitDecoratorMetadata: true, | ||
moduleResolution: ts.ModuleResolutionKind.NodeJs, | ||
Comment on lines
+104
to
+105
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We need |
||
module: options.module, | ||
target: options.target, | ||
lib: [], | ||
}); | ||
|
||
// Copy over the JS and .d.ts files, and add a .metadata.json for each .d.ts file. | ||
for (const file of rootNames) { | ||
|
@@ -152,7 +159,9 @@ export function compileIntoApf( | |
compileFs.ensureDir(compileFs.resolve('esm2015')); | ||
emit({ | ||
declaration: true, | ||
emitDecoratorMetadata: true, | ||
outDir: './esm2015', | ||
moduleResolution: ts.ModuleResolutionKind.NodeJs, | ||
module: ts.ModuleKind.ESNext, | ||
target: ts.ScriptTarget.ES2015, | ||
lib: [], | ||
|
@@ -178,7 +187,9 @@ export function compileIntoApf( | |
compileFs.ensureDir(compileFs.resolve('esm5')); | ||
emit({ | ||
declaration: false, | ||
emitDecoratorMetadata: true, | ||
outDir: './esm5', | ||
moduleResolution: ts.ModuleResolutionKind.NodeJs, | ||
module: ts.ModuleKind.ESNext, | ||
target: ts.ScriptTarget.ES5, | ||
lib: [], | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one was fun to track down 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🥵