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
feat: migrate to @angular/build - Update custom-esbuild to use @angular/build instead of @angular-devkit/build-angular for better performance - Update import paths to use @angular/build/private for internal APIs - Update dev-server builder context patching to use @angular/build:application - Update schema references to use @angular/build builders - Update README documentation for Angular 20 and @angular/build - Add TypeScript import fixes for better ESM support - Improve Jest examples with better Cypress config and TypeScript usage - Update common module loading logic for better CommonJS/ESM compatibility
In the above example, we specify the list of `plugins` that should implement the ESBuild plugin schema. These plugins are custom user plugins and are added to the original ESBuild Angular configuration. Additionally, the `indexHtmlTransformer` property is used to specify the path to the file that exports the function used to modify the `index.html`.
120
122
121
-
The plugin file can export either a single pluginor a list of plugins. If a plugin accepts configuration then the config should be provided in `angular.json`:
123
+
The plugin file can export either a single plugin, a list of plugins or a factory function that returns a plugin or list of plugins. If a plugin accepts configuration then the config should be provided in `angular.json`:
122
124
123
125
```ts
124
126
// esbuild/plugins.ts
@@ -143,13 +145,13 @@ import type { Plugin, PluginBuild } from 'esbuild';
The `@angular-builders/custom-esbuild:dev-server` is an enhanced version of the `@angular-devkit/build-angular:dev-server` builder that allows the specification of `middlewares` (Vite's `Connect` functions). It also obtains `plugins` and `indexHtmlTransformer` from the `:application` configuration to run the Vite server with all the necessary configuration applied.
@@ -239,7 +260,7 @@ It is useful when you want to transform your `index.html` according to the build
0 commit comments