Skip to content

Support Custom Loaders for File Extensions in@angular-devkit/build-angular:browser-esbuild #28201

Closed as not planned

Description

Command

build, config, serve

Description

I'm using the @angular-devkit/build-angular:browser-esbuild builder for my Angular project and attempting to convert from the @angular-builders/custom-webpack:browser
builder. During this process, I've encountered a limitation when trying to handle custom file extensions, such as .less, within the ESBuild configuration. Currently, the browser-esbuild builder doesn't seem to support the configuration of custom loaders directly for specific file extensions, which restricts the ability to manage styles or other non-standard assets that require preprocessing. This limitation makes the transition from custom-webpack to browser-esbuild challenging, as it complicates the handling of various assets that were previously managed through custom Webpack configurations.

Describe the solution you'd like

Like to add loaders option as available in @angular-devkit/build-angular:application

Describe alternatives you've considered

I attempted to use @angular-devkit/build-angular
for my hybrid app, but it required extensive modifications and customizations across multiple files. This approach isn't practical, especially considering the large number of apps we already have configured with @angular-builders/custom-webpack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions