Skip to content

TypeScript plugin is not compatible with Terser plugin inline sourcemaps #1470

@olfek

Description

@olfek

With this config:

...
plugins:
[
    typescript({tsconfig: 'tsconfig.example.json'}),
    terser({sourceMap: {content: 'inline', includeSources: true, url: 'inline'}})
]
...

Terser plugin complains with this message:

inline source map not found

Because ...

// Force separate source map files for Rollup to work with.


So Rollup can work with separate source map files, but can the Terser plugin? 🤔 From my research, I don't think it can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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