build: remove module id references for components in release output#17625
build: remove module id references for components in release output#17625devversion wants to merge 1 commit intoangular:masterfrom
Conversation
Currently when building the libary with Gulp, we manually inline resources and remove the `moduleId` properties. This is actually why angular#13883 never came up until Bazel. Since we now release with Bazel and rely on the official resource inlining from `@angular/compiler-cli` we no longer have control to omit the `moduleId` properties. Technically since resources are inlined, the `moduleId` is unnecessary and can cause unexpected behavior. So this could be considered a bug in compiler-cli. Possible fix: angular/angular#33621. For now though, since it's unlikely that this is fixed upstream in RC phase, we manually patch the NGC resource inlining transform to also remove the `moduleId` property.
|
angular/angular#33621 should fix the issue upstream in framework. Though this fix is specific to output built with |
|
Rather than applying another patch, we could just remove all of the |
|
If you think that is do-able as part of the sync, then I'd be happy to remove the references to |
|
Closing in favor of #17626 |
|
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Currently when building the libary with Gulp, we manually inline
resources and remove the
moduleIdproperties. This is actuallywhy #13883 never came up until Bazel was a thing.
Since we now release with Bazel and rely on the official resource
inlining from
@angular/compiler-cliwe no longer have control toomit the
moduleIdproperties. Technically since resources areinlined, the
moduleIdis unnecessary and can cause unexpectedbehavior. So this could be considered a bug in compiler-cli.
Possible fix: angular/angular#33621.
For now though, since it's unlikely that this is fixed upstream
in RC phase, we manually patch the NGC resource inlining transform
to also remove the
moduleIdproperty.Keeping
moduleIdcan cause errors in the UMD bundles like: