Skip to content

Ignore "sourcemap", "minify", "compact" #16268

@Roffild

Description

@Roffild

Astro Info

Astro                    v6.1.5
Node                     v25.7.0
System                   Windows (x64)
Package Manager          unknown
Output                   static
Adapter                  none
Integrations             none

If this issue only occurs in one browser, which browser is a problem?

No response

Describe the Bug

bug_sourcemap.zip

astro.config.ts

import { defineConfig } from "astro/config";

export default defineConfig({
  compressHTML: false,
  build: {
    format: "file",
    // inlineStylesheets: 'never',
  },
  vite: {
    build: {
      assetsInlineLimit: 0,
      minify: false,
      sourcemap: "inline",
      rollupOptions: {
        output: {
          compact: false,
          // sourcemap: 'inline',
        },
      },
    },
  },
});

/dist/_astro/index.astro_astro_type_script_index_0_lang.CQbe2ZHP.js with sourcemap: false and minify: true.

What's the expected result?

I need a code with sourcemap: true and minify: false for debugging.

Link to Minimal Reproducible Example

file

Participation

  • I am willing to submit a pull request for this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    - P4: importantViolate documented behavior or significantly impacts performance (priority)pkg: astroRelated to the core `astro` package (scope)

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions