Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(@angular-devkit/build-angular): avoid double sourcemap comments with esbuild dev-server #25065

Merged

Commits on Apr 25, 2023

  1. fix(@angular-devkit/build-angular): avoid double sourcemap comments w…

    …ith esbuild dev-server
    
    When using the esbuild-based browser application builder with the dev-server builder, sourcemap
    URL comments were unintentionally doubled due to vite adding an additional inline sourcemap comment
    when processing the JavaScript files for the application. To avoid this, JavaScript files now have
    any sourcemap URL comments removed prior to being processed by vite. The sourcemap content is already
    passed directly to vite and allows the sourcemaps to be processed and provided to the browser as needed
    without the previously existing sourcemap URL comment. The removal is done without modifying the esbuild-
    based builder's options to avoid assuming the builder used with the dev-server has sourcemap options that
    allow hidden sourcemap generation.
    clydin committed Apr 25, 2023
    Configuration menu
    Copy the full SHA
    31a614d View commit details
    Browse the repository at this point in the history