danvk / source-map-explorer

Analyze and debug space usage through source maps
Apache License 2.0
3.83k stars 101 forks source link

Weird bundle. A tiny package becomes 1Mb. #112

Closed kg-currenxie closed 5 years ago

kg-currenxie commented 5 years ago

Screenshot 2019-04-25 at 10 48 02

Screenshot 2019-04-25 at 10 47 16

Any ideas? :)

Using webpack v4.

      splitChunks: {
        chunks: 'all',
        automaticNameDelimiter: '-',
      },
      // Keep the runtime chunk separated to enable long term caching
      // https://twitter.com/wSokra/status/969679223278505985
      runtimeChunk: true,
      // Tells webpack to use readable module identifiers for better debugging.
      namedModules: isEnvDevelopment,
      // Tells webpack to use readable chunk identifiers for better debugging.
      namedChunks: true,
      // Tells webpack which algorithm to use when choosing chunk ids.
      chunkIds: 'named', // Readable ids for better debugging.
      // Tells webpack which algorithm to use when choosing module ids.
      moduleIds: 'hashed', // Short hashes as ids for better long term caching.
bugzpodder commented 5 years ago

Hi, this should be the same as https://github.com/danvk/source-map-explorer/issues/74

kg-currenxie commented 5 years ago

Thanks.