Skip to content

[feat] Add thread-loader support #938

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
      },
    ],
  },
};

Activity

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions