Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

source-map-loader don't exclude node_modules #81

@iplaylf2

Description

@iplaylf2

I just make a "hello world" demo.The dist file only take 60k when I use react+ts.But,it will take 15M when I reference antd library。
About ts-loader

      {
        test: /\.(ts|tsx)?$/,
        loader: "awesome-typescript-loader"
      },

About source-map-loader

      {
        test: /\.(tsx|ts|jsx|js)$/,
        exclude: path.resolve(__dirname, "node_modules"),
        use: ["source-map-loader"],
        enforce: "pre"
      }

source-map-loader not working.The result as same as only set devtool: "inline-source-map"

Thank you for reading my shit English.I try resolving it by myself.But I even found not one demo about this loader.Sorry~

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