Socket
Socket
Sign inDemoInstall

size-limit

Package Overview
Dependencies
37
Maintainers
1
Versions
174
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.0.4 to 7.0.0

update-check-with-imports.js

7

create-reporter.js

@@ -113,9 +113,10 @@ let {

let sizeNote
let bundled = plugins.has('webpack') || plugins.has('esbuild')
if (check.config) {
sizeNote = 'with given webpack configuration'
} else if (plugins.has('webpack') && check.brotli === true) {
} else if (bundled && check.brotli === true) {
sizeNote = 'with all dependencies, minified and brotli'
} else if (plugins.has('webpack') && check.gzip === false) {
} else if (bundled && check.gzip === false) {
sizeNote = 'with all dependencies and minified'
} else if (plugins.has('webpack')) {
} else if (bundled) {
sizeNote = 'with all dependencies, minified and gzipped'

@@ -122,0 +123,0 @@ } else if (plugins.has('file') && check.gzip !== false) {

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

ignore: 'webpack',
import: 'webpack',
import: ['webpack', 'esbuild'],
gzip: ['webpack', 'file'],

@@ -21,0 +21,0 @@ running: 'time',

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

@@ -26,2 +26,3 @@ "keywords": [

"lilconfig": "^2.0.3",
"mkdirp": "^1.0.4",
"nanospinner": "^0.4.0",

@@ -28,0 +29,0 @@ "picocolors": "^1.0.0"

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

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

@@ -34,3 +34,3 @@ }

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

@@ -40,3 +40,3 @@ }

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

@@ -43,0 +43,0 @@ }

@@ -9,3 +9,6 @@ const MESSAGES = {

`Argument *--${arg}* works only with *@size-limit/webpack* plugin` +
(arg === 'why' ? '. You can add Bundle Analyzer to you own bundler.' : ''),
(arg === 'why'
? ' and *@size-limit/webpack-why* plugin. You can add Bundle ' +
'Analyzer to you own bundler.'
: ''),
argWithoutAnotherArg: (arg, anotherArg) =>

@@ -12,0 +15,0 @@ `Argument *--${arg}* works only with *--${anotherArg}* argument`,

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc