Skip to content

Commit 2e03208

Browse files
devversionmmalerba
authored andcommitted
build: remove example package workaround for flat module bundle (#17642)
We no longer need the flat module bundle workaround for the `components-examples`. This is because we no longer use a flat module bundle for this package as we release with ngtsc.
1 parent 5c92c06 commit 2e03208

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

tools/bazel/postinstall-patches.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,16 +49,12 @@ searchAndReplace(
4949
// Workaround for: https://github.com/angular/angular/pull/32650
5050
searchAndReplace(
5151
'var indexFile;', `
52-
var publicApiFile = files.find(f => f.endsWith('/public-api.ts'));
53-
var moduleFile = files.find(f => f.endsWith('/module.ts'));
54-
var indexFile = publicApiFile || moduleFile;
52+
var indexFile = files.find(f => f.endsWith('/public-api.ts'));
5553
`,
5654
'node_modules/@angular/compiler-cli/src/metadata/bundle_index_host.js');
5755
searchAndReplace(
5856
'var resolvedEntryPoint = null;', `
59-
var publicApiFile = tsFiles.find(f => f.endsWith('/public-api.ts'));
60-
var moduleFile = tsFiles.find(f => f.endsWith('/module.ts'));
61-
var resolvedEntryPoint = publicApiFile || moduleFile || null;
57+
var resolvedEntryPoint = tsFiles.find(f => f.endsWith('/public-api.ts')) || null;
6258
`,
6359
'node_modules/@angular/compiler-cli/src/ngtsc/entry_point/src/logic.js');
6460

0 commit comments

Comments
 (0)