developit / workerize-loader

🏗️ Automatically move a module into a Web Worker (Webpack loader)
https://npm.im/workerize-loader
2.31k stars 86 forks source link

Customizing worker bundles name results in "worker" word in file twice. #120

Open akgupta0777 opened 3 years ago

akgupta0777 commented 3 years ago

I am using webpack with workerize-loader and this is my config.

rules: [
      {
        test: /\.worker\.js$/,
        use: [
          {
            loader: 'workerize-loader',
            options: {
              inline: true,
              name: '[name]',
            },
          },

I put name in options so that my worker files are comeup with a proper name not a content hash.but this results in the word worker twice in the filename.

image

as you can see in above image worker word is coming twice.