You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(@angular/build): exclude all entrypoints of a library from prebundling
The configuration now ensures that when a package is listed for exclusion, all paths within that package including sub-paths like `@foo/bar/baz` are marked as external and not prebundled by the development server.
For example, specifying `@foo/bar` in the exclude list will prevent the development server from bundling any files from the `@foo/bar` package, including its sub-paths such as `@foo/bar/baz`.
This aligns with esbuild external option behaviour https://esbuild.github.io/api/#externalCloses#29170
(cherry picked from commit f0dd60b)
Copy file name to clipboardexpand all lines: packages/angular/build/src/builders/application/schema.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -196,7 +196,7 @@
196
196
"additionalProperties": false
197
197
},
198
198
"externalDependencies": {
199
-
"description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime.",
199
+
"description": "Exclude the listed external dependencies from being bundled into the bundle. Instead, the created bundle relies on these dependencies to be available during runtime. Note: `@foo/bar` marks all paths within the `@foo/bar` package as external, including sub-paths like `@foo/bar/baz`.",
Copy file name to clipboardexpand all lines: packages/angular/build/src/builders/dev-server/schema.json
+1-1
Original file line number
Diff line number
Diff line change
@@ -115,7 +115,7 @@
115
115
"type": "object",
116
116
"properties": {
117
117
"exclude": {
118
-
"description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself.",
118
+
"description": "List of package imports that should not be prebundled by the development server. The packages will be bundled into the application code itself. Note: specifying `@foo/bar` marks all paths within the `@foo/bar` package as excluded, including sub-paths like `@foo/bar/baz`.",
0 commit comments