Skip to content

Commit c7eee83

Browse files
alan-agius4amishne
authored andcommitted
docs: clarify that FESM can depend on shared chunks
Closes angular#66569
1 parent 5974cd0 commit c7eee83

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

adev/src/content/tools/libraries/angular-package-format.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,7 @@ The Angular compiler can generate index ES module files. Tools like Rollup can u
206206

207207
FESM is a file format created by flattening all ES Modules accessible from an entrypoint into a single ES Module.
208208
It's formed by following all imports from a package and copying that code into a single file while preserving all public ES exports and removing all private imports.
209+
However, in some cases, the FESM may depend on shared chunks that are shared between multiple entry points.
209210

210211
The abbreviated name, FESM, pronounced _phe-som_, can be followed by a number such as FESM2020.
211212
The number refers to the language level of the JavaScript inside the module.
@@ -300,6 +301,7 @@ Short for ECMAScript Modules \(see above\).
300301
### FESM
301302

302303
Short for Flattened ES Modules and consists of a file format created by flattening all ES Modules accessible from an entry point into a single ES Module.
304+
Note that FESM is typically a single file, but it can depend on a shared chunk that is shared with other FESMs.
303305

304306
### Module ID
305307

0 commit comments

Comments
 (0)