Skip to content

A small repro that shows problems faced with @angular/cli, when parts of an application should be pre-built and re-linked with existing source code

Notifications You must be signed in to change notification settings

drakenfly/angular-code-splitting-repro

Repository files navigation

Problem

How to reproduce

  • rm -rf dist/*
  • npm i
  • npm run build -- --project=test1 --prod
  • npm run build -- --project=test2 --prod
  • npm run build -- --project=test3 --prod
  • cd dist/test3
  • npm link
  • cd ../..
  • npm link @prebuilt/test3

  • npm run start -- --configuration=fromsource: does not work
  • npm run start -- --configuration=fromdist: works as expected

After that, fromsource builds will run too (because Ivy already did it's job), but I'm not sure if it would be linked correctly

How this project was set up

  • ng new code-splitting-repro
  • cd code-splitting-repro
  • npm run ng -- g library test1
  • npm run ng -- g library test2
  • npm run ng -- g library test3
  • Source code modifications

About

A small repro that shows problems faced with @angular/cli, when parts of an application should be pre-built and re-linked with existing source code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published