-
Notifications
You must be signed in to change notification settings - Fork 26.2k
feat(core): set preserveWhitespaces to false by default #22046
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
Conversation
@@ -307,7 +307,7 @@ class CompWithUrlTemplate { | |||
it('should allow to createSync components with templateUrl after explicit async compilation', | |||
() => { | |||
const fixture = TestBed.createComponent(CompWithUrlTemplate); | |||
expect(fixture.nativeElement).toHaveText('from external template\n'); | |||
expect(fixture.nativeElement).toHaveText('from external template'); |
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.
Here (as well as in other tests) I have just updated the expected value rather then having two tests: one with preserveWhiteSpaces=true
and preserveWhiteSpaces=false
. I did not add the extra test because this does not seem to be the purpose of the existing test (createSync components).
889d64b
to
65ef710
Compare
I get the error |
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.
can you just change that one doc please? the rest looks great. thanks!!
aio/content/guide/aot-compiler.md
Outdated
This option is `true` by default. | ||
|
||
*Note*: It is recommended to set this explicitly to `false` as it emits smaller template factory modules and might be set to `false` by default in the future. | ||
This option is `false` by default, which results in smaller emitted template factory modules. |
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.
Maybe say, "As of v6, this option is false
by default ..."
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.
@IgorMinar done.
|
Hi @benbraou! This PR has merge conflicts due to recent upstream merges. |
Merge conflict in |
Weird... After rebase on top of master, the build job I see the error
I am not sure if just a rebuild is needed or a more serious problem is causing this. |
I've restarted the ci job. let's see if we can repro the issue again. |
The CI build is now passing. Thank you! |
@mhevery I thought you tested this in g3 already? can we land it? |
hi @mhevery, I have a question regarding to this. Does TestBed also automatically get this option false by default ? |
@AhnpGit, it should. do you see something else? if so, please file an issue and provide a reproduction. |
hi @IgorMinar, it worked :) Nothing strange happens |
cool |
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. |
Fixes #22027
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
preserveWhitespaces
istrue
by defaultWhat is the new behavior?
preserveWhitespaces
isfalse
by defaultDoes this PR introduce a breaking change?
The impact of this breaking change seems to be already assessed as minimal as described in #22027
Other information