Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

build: re-introduce build.sh#930

Merged
Toxicable merged 1 commit intomasterfrom
fabian/build.sh-patch
Mar 16, 2018
Merged

build: re-introduce build.sh#930
Toxicable merged 1 commit intomasterfrom
fabian/build.sh-patch

Conversation

@Toxicable
Copy link
Copy Markdown

@Toxicable Toxicable commented Mar 14, 2018

BREAKING CHANGE: Tokens are now exported from @nguniversal/engineName/tokens
This change fixes are regression where using these tokens in your browser app would increase the bundle size by about ~600kb.

fixes: #920

*/
export { TransferHttpCacheModule } from './src/transfer_http';
export { StateTransferInitializerModule } from './src/state-transfer-initilizer/module';
// export { StateTransferInitializerModule } from './src/state-transfer-initilizer/module';
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

don't export this into v5 since it actually fails to compile and hasn't been validated.

@Toxicable Toxicable added action: review target: major This PR is targeted for the next major release labels Mar 14, 2018
Copy link
Copy Markdown
Member

@CaerusKaru CaerusKaru left a comment

Choose a reason for hiding this comment

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

Some minor nits, ow good

{
"extends": "./tsconfig.lib.json",
"files": [
"./index.ts",
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Don't need the ./ here, or elsewhere

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

it was like that in the other tsconfigs so being consistent

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Ok then that's fine, didn't realize it was like that

"./index.ts",
"./tokens.ts"
],
"angularCompilerOptions": {}
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Remove

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

the angularCompilerOptions ? we need to overide them since the ones declared in .lib conflict with our files declaration here

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

They don't get extended, see angular/angular#22684

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

ahh sweet as then, wasn't aware of that

@Toxicable Toxicable force-pushed the fabian/build.sh-patch branch 2 times, most recently from c6dc5b2 to ac61431 Compare March 16, 2018 17:49
BREAKING CHANGE: Tokens are now exported from @nguniversal/engineName/tokens
This change fixes are regression where using these tokens in your browser app would increase the bundle size by about ~600kb.
@Toxicable Toxicable force-pushed the fabian/build.sh-patch branch from ac61431 to 32708e7 Compare March 16, 2018 17:55
@Toxicable Toxicable merged commit 7704d56 into master Mar 16, 2018
@Toxicable Toxicable deleted the fabian/build.sh-patch branch March 16, 2018 18:00
Toxicable pushed a commit that referenced this pull request Mar 16, 2018
BREAKING CHANGE: Tokens are now exported from @nguniversal/engineName/tokens
This change fixes a regression where using these tokens in your browser app would increase the bundle size by about ~600kb.
@angular-automatic-lock-bot
Copy link
Copy Markdown

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 Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review target: major This PR is targeted for the next major release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

How it import express tokens without increasing the bundle size

3 participants