Add size-limit (#536)

This commit is contained in:
Franck R 2022-02-16 11:13:18 +11:00 committed by GitHub
parent f780a76da3
commit 30faaf91d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 653 additions and 459 deletions

1100
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,7 @@
"build:umd:min": "webpack --config webpack.config.min.js",
"build:umd:bundle": "webpack --config webpack.config.bundle.js",
"build:umd:min:bundle": "webpack --config webpack.config.min.bundle.js",
"size": "npm run build:esm && size-limit",
"fix": "run-s fix:*",
"fix:prettier": "prettier \"src/**/*.ts\" \"./*.json\" \"*.conf.js\" --write",
"fix:lint": "eslint src --ext .ts --fix",
@ -80,6 +81,7 @@
},
"devDependencies": {
"@istanbuljs/nyc-config-typescript": "^1.0.1",
"@size-limit/preset-big-lib": "^7.0.8",
"@types/app-root-path": "^1.2.4",
"@types/chai": "^4.2.15",
"@types/mocha": "^9.1.0",
@ -118,6 +120,7 @@
"prettier": "^2.1.1",
"process": "^0.11.10",
"puppeteer": "^13.0.1",
"size-limit": "^7.0.8",
"stream-browserify": "^3.0.0",
"tail": "^2.2.0",
"ts-loader": "^9.2.6",
@ -145,5 +148,12 @@
"exclude": [
"**/*.spec.js"
]
}
},
"size-limit": [
{
"path": "build/esm/index.js",
"import": "{ Waku }",
"config": "./webpack.config.js"
}
]
}