Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Add @angular/compiler to vendor chunk when building in JiT mode #498

Closed
3 tasks done
sis0k0 opened this issue Apr 17, 2018 · 0 comments · Fixed by #507
Closed
3 tasks done

Add @angular/compiler to vendor chunk when building in JiT mode #498

sis0k0 opened this issue Apr 17, 2018 · 0 comments · Fixed by #507

Comments

@sis0k0
Copy link
Contributor

sis0k0 commented Apr 17, 2018

Issue Checklist

  • You are submitting: a feature request
  • You verified that this is a real problem by searching the [NativeScript Forum] and the other [issues] in this repo.
  • You checked our [demo apps] and the [documentation] for sample usage.

Problem

Currently, if you build an Angular app without AoT, the @angular/compiler package is bundle inside the bundle.js chunk. This results in slower consequent rebuilds of the bundle.js chunk.

Proposed solution

We can have a loader/plugin that inserts an import for the @angular/compiler package in vendor.ts if you're building with AoT. That will move the package from bundle.js to vendor.js and will result in faster rebuilds for the significantly smaller bundle.js chunk.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant