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

refactor(docs-infra): update loading of custom elements to use dynamic imports #30704

Conversation

brandonroberts
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • angular.io application / infrastructure changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

@brandonroberts brandonroberts added effort1: hours refactoring Issue that involves refactoring or code-cleanup comp: docs-infra target: patch This PR is targeted for the next patch release risk: low labels May 28, 2019
@brandonroberts brandonroberts requested a review from a team as a code owner May 28, 2019 21:03
@ngbot ngbot bot added this to the Backlog milestone May 28, 2019
@mary-poppins
Copy link

You can preview 9b246b4 at https://pr30704-9b246b4.ngbuilds.io/.

aio/scripts/_payload-limits.json Show resolved Hide resolved
aio/src/app/custom-elements/element-registry.ts Outdated Show resolved Hide resolved
aio/src/app/custom-elements/elements-loader.ts Outdated Show resolved Hide resolved
@gkalpak gkalpak added the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 29, 2019
@mary-poppins
Copy link

You can preview a932a3b at https://pr30704-a932a3b.ngbuilds.io/.

…c import syntax

Removes the usage of `NgModuleFactoryLoader` and string-based imports for lazy loading.
…odules

In View Engine, NgModule factories are created for each NgModule and loaded when the module is requested. Ivy doesn't generate the
factories by design and only loads the module class, so it must be compiled after being loaded.
@mary-poppins
Copy link

You can preview 64afdef at https://pr30704-64afdef.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 8da946f at https://pr30704-8da946f.ngbuilds.io/.

@mary-poppins
Copy link

You can preview c4b31ba at https://pr30704-c4b31ba.ngbuilds.io/.

@brandonroberts brandonroberts removed the action: cleanup The PR is in need of cleanup, either due to needing a rebase or in response to comments from reviews label May 30, 2019
@mary-poppins
Copy link

You can preview f4b447e at https://pr30704-f4b447e.ngbuilds.io/.

@mary-poppins
Copy link

You can preview cbadd28 at https://pr30704-cbadd28.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 61bb57a at https://pr30704-61bb57a.ngbuilds.io/.

@mary-poppins
Copy link

You can preview cd86d95 at https://pr30704-cd86d95.ngbuilds.io/.

@mary-poppins
Copy link

You can preview d23517a at https://pr30704-d23517a.ngbuilds.io/.

@brandonroberts brandonroberts added the action: merge The PR is ready for merge by the caretaker label May 31, 2019
mhevery pushed a commit that referenced this pull request May 31, 2019
…c import syntax (#30704)

Removes the usage of `NgModuleFactoryLoader` and string-based imports for lazy loading.

PR Close #30704
mhevery pushed a commit that referenced this pull request May 31, 2019
…odules (#30704)

In View Engine, NgModule factories are created for each NgModule and loaded when the module is requested. Ivy doesn't generate the
factories by design and only loads the module class, so it must be compiled after being loaded.

PR Close #30704
@mhevery mhevery closed this in fcef390 May 31, 2019
mhevery pushed a commit that referenced this pull request May 31, 2019
…odules (#30704)

In View Engine, NgModule factories are created for each NgModule and loaded when the module is requested. Ivy doesn't generate the
factories by design and only loads the module class, so it must be compiled after being loaded.

PR Close #30704
gkalpak added a commit to gkalpak/angular that referenced this pull request Jun 7, 2019
… Ivy mode

Previously, when switching to Ivy mode (e.g. to run tests on CI), we had
to add `allowEmptyCodegenFiles: true` to the `angularCompilerOptions` in
`tsconfig.app.json`.

This isn't necessary any more (potentially since we switched to dynamic
imports for loading lazy modules in angular#30704), so this commit removes it
from the `switch-to-ivy.js` script.
gkalpak added a commit to gkalpak/angular that referenced this pull request Jun 7, 2019
… Ivy mode

Previously, when switching to Ivy mode (e.g. to run tests on CI), we had
to add `allowEmptyCodegenFiles: true` to the `angularCompilerOptions` in
`tsconfig.app.json`.

This isn't necessary any more (potentially since we switched to dynamic
imports for loading lazy modules in angular#30704), so this commit removes it
from the `switch-to-ivy.js` script.
mhevery pushed a commit that referenced this pull request Jun 7, 2019
… Ivy mode (#30911)

Previously, when switching to Ivy mode (e.g. to run tests on CI), we had
to add `allowEmptyCodegenFiles: true` to the `angularCompilerOptions` in
`tsconfig.app.json`.

This isn't necessary any more (potentially since we switched to dynamic
imports for loading lazy modules in #30704), so this commit removes it
from the `switch-to-ivy.js` script.

PR Close #30911
pull bot pushed a commit to Pandinosaurus/angular that referenced this pull request Jun 7, 2019
… Ivy mode (angular#30911)

Previously, when switching to Ivy mode (e.g. to run tests on CI), we had
to add `allowEmptyCodegenFiles: true` to the `angularCompilerOptions` in
`tsconfig.app.json`.

This isn't necessary any more (potentially since we switched to dynamic
imports for loading lazy modules in angular#30704), so this commit removes it
from the `switch-to-ivy.js` script.

PR Close angular#30911
@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 Sep 15, 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 effort1: hours refactoring Issue that involves refactoring or code-cleanup risk: low target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants