question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dummy-module chunk is not deleted

See original GitHub issue

webpack: 4.44.1 svg-spritemap-webpack-plugin: 3.5.7

Config like:

module.exports = {
  mode: 'development',
  output: {
    path: '/shop-static/assets/',
    hashDigestLength: 8,
    filename: './js/[name].js',
    chunkFilename: './js/[name].js'
  },
  plugins: [
    new SVGSpritemapPlugin('./src/svg-icons/*.svg', {
      output: {
        filename: 'spritemap',
        svgo: {
          plugins: [{ removeTitle: true }]
        }
      }
    })
  ]
};

When I added console.log here:

...
// Fetch existing filenames from all instances of this plugin
const filenames = compilation.options.plugins.filter((plugin) => plugin instanceof SVGSpritemapPlugin).map((plugin) => plugin.filename);
compilation.chunks.forEach((chunk) => {
  console.log(chunk.name, outputOptions.chunk.name)
...

I saw:

spritemap~._spritemap-dummy-module~1acb1ac1 spritemap

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
cascornelissencommented, Aug 24, 2020

@nikolay-borzov, the fix for this issue has been released in version 3.5.8 🚀 Thanks for reporting the bug and helping me debug it!

1reaction
nikolay-borzovcommented, Aug 23, 2020

I confirm dummy-module is no longer remains after the build on my project.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failing to clean dummy-chunk on some occasions #81 - GitHub
If I define output.filename as a string without any placeholders, dummy module's chunk uses that string as a postfix to define its filename....
Read more >
Webpack chunks are not found - Stack Overflow
When I start development server, application is build successfully and I can see a list of chunks generated, but then application doesn't load ......
Read more >
Models — transformers 3.0.2 documentation - Hugging Face
Dummy inputs to do a forward pass in the network. ... Tensor with dummy inputs ... resume_download – ( optional ) boolean, default...
Read more >
NormalModuleReplacementPlugin - webpack
The NormalModuleReplacementPlugin allows you to replace resources that match resourceRegExp with newResource . If newResource is relative, it is resolved ...
Read more >
A Beginner's Guide to Webpack - SitePoint
Learn the core concepts to help you get started with webpack, the popular static module bundler. We'll help you understand how webpack works ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found