@size-limit/esbuild-why 8.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -0
- package/README.md +13 -0
- package/index.js +17 -0
- package/package.json +25 -0
- package/tmpksqutV/LICENSE +20 -0
- package/tmpksqutV/README.md +13 -0
- package/tmpksqutV/index.js +17 -0
- package/tmpksqutV/package.json +25 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Size Limit esbuild-why Plugin
|
|
2
|
+
|
|
3
|
+
The plugin for [Size Limit] to create report about the size of
|
|
4
|
+
your dependencies.
|
|
5
|
+
|
|
6
|
+
See Size Limit docs for more details.
|
|
7
|
+
|
|
8
|
+
[Size Limit]: https://github.com/ai/size-limit/
|
|
9
|
+
|
|
10
|
+
<a href="https://evilmartians.com/?utm_source=size-limit">
|
|
11
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
12
|
+
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
13
|
+
</a>
|
package/index.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
let { visualizer } = require('esbuild-visualizer')
|
|
2
|
+
let { join } = require('path')
|
|
3
|
+
let { writeFileSync } = require('fs')
|
|
4
|
+
|
|
5
|
+
let self = {
|
|
6
|
+
name: '@size-limit/esbuild-why',
|
|
7
|
+
|
|
8
|
+
async step81(config, check) {
|
|
9
|
+
if (config.why && check.esbuildMetafile) {
|
|
10
|
+
let result = await visualizer(check.esbuildMetafile)
|
|
11
|
+
let file = join(config.saveBundle ?? '', 'report.html')
|
|
12
|
+
writeFileSync(file, result)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = [self]
|
package/package.json
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@size-limit/esbuild-why",
|
|
3
|
+
"version": "8.2.0",
|
|
4
|
+
"description": "esbuild plugin for Size Limit",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"size-limit",
|
|
7
|
+
"plugin",
|
|
8
|
+
"performance",
|
|
9
|
+
"budget",
|
|
10
|
+
"performance budget",
|
|
11
|
+
"esbuild"
|
|
12
|
+
],
|
|
13
|
+
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": "ai/size-limit",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^14.0.0 || ^16.0.0 || >=18.0.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"size-limit": "8.2.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"esbuild-visualizer": "^0.4.0"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright 2017 Andrey Sitnik <andrey@sitnik.ru>
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
6
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
7
|
+
the Software without restriction, including without limitation the rights to
|
|
8
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
9
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
10
|
+
subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
17
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
18
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
19
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
20
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Size Limit esbuild-why Plugin
|
|
2
|
+
|
|
3
|
+
The plugin for [Size Limit] to create report about the size of
|
|
4
|
+
your dependencies.
|
|
5
|
+
|
|
6
|
+
See Size Limit docs for more details.
|
|
7
|
+
|
|
8
|
+
[Size Limit]: https://github.com/ai/size-limit/
|
|
9
|
+
|
|
10
|
+
<a href="https://evilmartians.com/?utm_source=size-limit">
|
|
11
|
+
<img src="https://evilmartians.com/badges/sponsored-by-evil-martians.svg"
|
|
12
|
+
alt="Sponsored by Evil Martians" width="236" height="54">
|
|
13
|
+
</a>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
let { visualizer } = require('esbuild-visualizer')
|
|
2
|
+
let { join } = require('path')
|
|
3
|
+
let { writeFileSync } = require('fs')
|
|
4
|
+
|
|
5
|
+
let self = {
|
|
6
|
+
name: '@size-limit/esbuild-why',
|
|
7
|
+
|
|
8
|
+
async step81(config, check) {
|
|
9
|
+
if (config.why && check.esbuildMetafile) {
|
|
10
|
+
let result = await visualizer(check.esbuildMetafile)
|
|
11
|
+
let file = join(config.saveBundle ?? '', 'report.html')
|
|
12
|
+
writeFileSync(file, result)
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
module.exports = [self]
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@size-limit/esbuild-why",
|
|
3
|
+
"version": "8.2.0",
|
|
4
|
+
"description": "esbuild plugin for Size Limit",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"size-limit",
|
|
7
|
+
"plugin",
|
|
8
|
+
"performance",
|
|
9
|
+
"budget",
|
|
10
|
+
"performance budget",
|
|
11
|
+
"esbuild"
|
|
12
|
+
],
|
|
13
|
+
"author": "Andrey Sitnik <andrey@sitnik.ru>",
|
|
14
|
+
"license": "MIT",
|
|
15
|
+
"repository": "ai/size-limit",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": "^14.0.0 || ^16.0.0 || >=18.0.0"
|
|
18
|
+
},
|
|
19
|
+
"peerDependencies": {
|
|
20
|
+
"size-limit": "8.2.0"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"esbuild-visualizer": "^0.4.0"
|
|
24
|
+
}
|
|
25
|
+
}
|