Build of server side bundle is combining to the bundle packages which are linked. #13817
Labels
area: @angular-devkit/build-angular
freq1: low
Only reported by a handful of users who observe it rarely
severity3: broken
type: bug/fix
Milestone
🐞 Bug report
Command
Description
Build of server side bundle is combining to the bundle packages which are linked (
npm link xyz
). Same package, if is just installed (npm i xyz
) is just referenced byrequire
. This cause a problems with few workflows like auto server side restart bynodemon
, debugging, ect. It is confusing that build is handling same package in two different ways. Build should handle in same way packages which are undernode_modules
, no matter haw that modules are installed.🔬 Minimal Reproduction
ng init abc
cd abc
npm i uuid @types/uuid
(this is just example of some 3Party package, but it can be any other)src/main-server.ts
:src/tsconfig.server.json
:angular.json
under theprojects/abc/architect
add:ng run abc:server
, generated bundle is 4.55 kB and contains just reference touuid
package:git clone https://github.com/kelektiv/node-uuid.git -- node-uuid
npm link
instde cloned reponpm link uuid
ng run abc:server
, now bundle size is 11.2 kB and it contains content of linked package🌍 Your Environment
The text was updated successfully, but these errors were encountered: