Skip to content

pass direct reference to ts-loader to webpack.config module.rules.loader #1660

Open

Description

@danehansen

Expected Behaviour

is there a way to pass in a direct reference to some sort of ts-loader into webpack.config so that i can have a central webpack config reusable in multiple applications without having to include ts-loader as a seperate dependancy for each app? kinda like how mini-css-extract-plugin has MiniCssExtractPlugin.loader to pass in... thanks!

Activity

  1. GabenGar commented on Oct 1, 2026

    @GabenGar

    Default export is the loader, which is required (in both senses) by webpack API. MiniCssExtractPlugin is a plugin, that's why it has the loader as a separate symbol.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions