Skip to content

[feat] Add thread-loader support #938

@mjames-c

Description

@mjames-c

We (Canva) have noticed that ReactRefreshLoader is adding non-negligible overhead to our webpack builds. For example, our development startup build time increased by ~15% (from 3m30s to 4m).

It would be great for us if ReactRefreshWebpackPlugin could be setup to work with thread-loader to reduce this overhead (similar to our other TypeScript loaders).

// example API
module.exports = {
  plugins: [new ReactRefreshWebpackPlugin()],
  module: {
    rules: [
      {
        test: /\.tsx?$/i,
        use: {
          loader: ReactRefreshWebpackPlugin.loader,
        },
        exclude: /node_modules/i
      },
    ],
  },
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions