Skip to content

[v4] Sourcemaps not enabled in postcss plugin #13694

Closed

Description

@wesbos

The postcss plugin doesn't write soucemaps when doing the lightning CSS conversion.

I think this is where it needs to happen but trying to patch it with pnpm does not give me sourcemaps, so Im wondering if there is a larger issue

Activity

  1. wesbos commented on May 16, 2024

    @wesbos
    ContributorAuthor

    Looks like you need to explicitly pass the sourcemap from lightning CSS to postcss. Here is a good example: https://github.com/onigoetz/postcss-lightningcss/blob/main/src/index.js#L23-L66

  2. thecrypticace commented on May 17, 2024

    @thecrypticace
    Contributor

    Sourcemaps are still a WIP. We don't track them at all at the moment in v4 but we have a PR for it. I think PostCSS source map support is going to be rather complicated because we're not utilizing the PostCSS AST and will require further research.

  3. added a commit that references this issue on May 8, 2025
    56b22bb
  4. thecrypticace commented on May 8, 2025

    @thecrypticace
    Contributor

    The next release will have support for source maps in development!

  5. Mnojavaya commented on May 22, 2026

    @Mnojavaya

    Unfortunately, v4.4.6 still produces this warning

    ● Nuxt 4.4.6 (with Nitro 2.13.4, Vite 7.3.3 and Vue 3.5.34)
    │
    ● Nitro preset: node-server
    ℹ Building client...
    ℹ vite v7.3.3 building client environment for production...

    WARN [plugin nuxt:module-preload-polyfill] Sourcemap is likely to be incorrect: a plugin (nuxt:module-preload-polyfill) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help

    ℹ transforming...

    WARN [plugin @tailwindcss/vite:generate:build] Sourcemap is likely to be incorrect: a plugin (@tailwindcss/vite:generate:build) was used to transform files, but didn't generate a sourcemap for the transformation. Consult the plugin documentation for help
    (repeated 28 times)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions