Skip to content

Commit f5e3999

Browse files
alan-agius4mhevery
authored andcommitted
docs: add side effect package.json in app structure (angular#37521)
With this change we add the special `package.json` which is used to mark the application free of non-local side-effects in the application source files section PR Close angular#37521
1 parent ff33ab1 commit f5e3999

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

aio/content/guide/file-structure.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ Angular components, templates, and styles go here.
9090
| `app/app.component.css` | Defines the base CSS stylesheet for the root `AppComponent`. |
9191
| `app/app.component.spec.ts` | Defines a unit test for the root `AppComponent`. |
9292
| `app/app.module.ts` | Defines the root module, named `AppModule`, that tells Angular how to assemble the application. Initially declares only the `AppComponent`. As you add more components to the app, they must be declared here. |
93+
| `app/package.json` | This file is generated only in applications created using `--strict` mode. This file is not used by package managers. It is used to tell the tools and bundlers whether the code under this directory is free of non-local [side-effects](https://webpack.js.org/guides/tree-shaking/#mark-the-file-as-side-effect-free). |
9394

9495
### Application configuration files
9596

0 commit comments

Comments
 (0)