Skip to content

Doesnt show gzip sized when using babel/preset-modules #440

@Makio64

Description

@Makio64

Issue description

When using the babel preset-modules
The gzip size is not working for the bundle minify with babel

loader: 'babel-loader',
	options: {
		presets: [
			'@babel/preset-modules',
		],
	},
},

It works correctly with @babel/preset-env

Technical info

npx envinfo --system --binaries --npmPackages='webpack' --npmGlobalPackages=webpack-bundle-analyzer

System:
    OS: Windows 10 10.0.19042
    CPU: (24) x64 AMD Ryzen 9 5900X 12-Core Processor
    Memory: 47.03 GB / 63.90 GB
  Binaries:
    Node: 14.15.4 - D:\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 7.11.2 - E:\github_repo\kimbapp\node_modules\.bin\npm.CMD
  npmPackages:
    css-minimizer-webpack-plugin: ^2.0.0 => 2.0.0
    html-webpack-plugin: ^5.3.1 => 5.3.1
    terser-webpack-plugin: ^5.1.1 => 5.1.1
    webpack: 5.36.1 => 5.36.1
    webpack-bundle-analyzer: ^4.4.1 => 4.4.1
    webpack-cli: ^4.6.0 => 4.6.0
    webpack-dev-server: ^3.11.2 => 3.11.2

Debug info

I use this plugin as part of my webpack plugins stacks

	plugins: [
		threeMinifier,
		new webpack.DefinePlugin({ isProduction: true }),
		new webpack.LoaderOptionsPlugin({ minimize: true, debug: false }),
		new MiniCssExtractPlugin({ filename: '../css/[name].css', chunkFilename: '../css/[id].css' }),
		new BundleAnalyzerPlugin({ openAnalyzer: true, defaultSizes: 'gzip' }),
	],

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions