Skip to content
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

build: disable sourcemap generation for all sass binaries #17291

Conversation

devversion
Copy link
Member

@devversion devversion commented Oct 4, 2019

We need to disable sourcemap generation for all sass binaries
as otherwise the inline source map comment will be inlined into
component styles in the release output.

Technically this is not a big deal for AOT compilation where those
source-map strings are omitted anyway, but for JIT it will contribute in
payload size, and with the current state of Angular Package Format, these
source-maps would point to non-existent files anyway.

We should just not generate these sourcemaps/comments similarly
to our Gulp build process
. Fortunately moving stuff to defaults.bzl macro's
makes future re-enabling a one-liner. Plus it's easier to remind where to import
rules from (potentially also helpful if the sass rules become a Bazel NPM workspace)

@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Oct 4, 2019
We need to disable sourcemap generation for all sass binaries
as otherwise the inline source map comment will be inlined into
component `styles` in the release output.

Technically this is not a big deal for AOT compilation where those
source-map strings are omitted anyway, but for JIT it will contribute in
payload size, and with the current state of Angular Package Format, these
source-maps would point to non-existent files anyway.

We should just not generate these sourcemaps/comments similarly
to our Gulp release output.
@devversion devversion force-pushed the build/disable-source-maps-for-all-sass-binaries branch from 84b034c to a3b319c Compare October 4, 2019 08:07
@devversion devversion added pr: merge safe target: major This PR is targeted for the next major release labels Oct 4, 2019
@devversion devversion added this to the 9.0.0 milestone Oct 4, 2019
Copy link
Member

@josephperrott josephperrott left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@josephperrott josephperrott added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Oct 4, 2019
@mmalerba mmalerba merged commit 230fd2f into angular:master Oct 4, 2019
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Nov 4, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants