size-limit
Advanced tools
Comparing version 7.0.0 to 7.0.1
@@ -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.' |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
31171
863