Socket
Socket
Sign inDemoInstall

size-limit

Package Overview
Dependencies
Maintainers
1
Versions
175
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

size-limit - npm Package Compare versions

Comparing version 7.0.0 to 7.0.1

6

get-config.js

@@ -17,8 +17,8 @@ let { isAbsolute, dirname, join, relative } = require('path')

webpack: 'webpack',
ignore: 'webpack',
ignore: ['webpack', 'esbuild'],
import: ['webpack', 'esbuild'],
gzip: ['webpack', 'file'],
brotli: 'file',
gzip: 'file',
running: 'time',
disableModuleConcatenation: 'webpack',
brotli: 'webpack',
hidePassed: false,

@@ -25,0 +25,0 @@ highlightLess: false,

{
"name": "size-limit",
"version": "7.0.0",
"version": "7.0.1",
"description": "CLI tool for Size Limit",

@@ -5,0 +5,0 @@ "keywords": [

@@ -13,4 +13,9 @@ let SizeLimitError = require('./size-limit-error')

} else if (arg === '--save-bundle') {
if (!plugins.has('webpack') || !plugins.has('webpack-why')) {
throw new SizeLimitError('argWithoutWebpack', 'save-bundle')
if (!plugins.has('esbuild') && !plugins.has('webpack')) {
throw new SizeLimitError(
'argWithoutPlugins',
'save-bundle',
'webpack',
'esbuild'
)
}

@@ -40,3 +45,3 @@ let nextArg = argv[++i]

if (!plugins.has('webpack') || !plugins.has('webpack-why')) {
throw new SizeLimitError('argWithoutWebpack', '--compare-with')
throw new SizeLimitError('argWithoutWebpack', 'compare-with')
}

@@ -43,0 +48,0 @@ if (!args.why) {

@@ -7,5 +7,8 @@ const MESSAGES = {

`Unknown argument *${arg}*. Check command for typo and read docs.`,
argWithoutPlugins: (arg, mod1, mod2) =>
`Argument *--${arg}* needs *@size-limit/${mod1}* ` +
`or *@size-limit/${mod2}* plugin`,
argWithoutWebpack: arg =>
`Argument *--${arg}* works only with *@size-limit/webpack* plugin` +
(arg === 'why'
(arg === 'why' || arg === 'compare-with'
? ' and *@size-limit/webpack-why* plugin. You can add Bundle ' +

@@ -12,0 +15,0 @@ 'Analyzer to you own bundler.'

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc