Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.
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

@sis0k0

Description

@sis0k0

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions